diff --git a/playbooks/kayobe-overcloud-base/overrides.yml.j2 b/playbooks/kayobe-overcloud-base/overrides.yml.j2 index cae26b818..e20baeb2e 100644 --- a/playbooks/kayobe-overcloud-base/overrides.yml.j2 +++ b/playbooks/kayobe-overcloud-base/overrides.yml.j2 @@ -39,6 +39,9 @@ kolla_enable_ironic: true kolla_enable_heat: false kolla_enable_horizon: false +# Enable Mariabackup for testing database backups +kolla_enable_mariabackup: true + {% if tls_enabled %} kolla_enable_nova_libvirt_container: false compute_libvirt_enable_tls: true diff --git a/playbooks/kayobe-overcloud-base/run.yml b/playbooks/kayobe-overcloud-base/run.yml index d296d6844..76ecd8af6 100644 --- a/playbooks/kayobe-overcloud-base/run.yml +++ b/playbooks/kayobe-overcloud-base/run.yml @@ -49,3 +49,10 @@ source "${KOLLA_CONFIG_PATH:-/etc/kolla}/admin-openrc.sh" && kayobe baremetal compute register &> {{ logs_dir }}/ansible/baremetal-compute-register executable: /bin/bash + + - name: Perform database backup + shell: + cmd: > + source {{ kayobe_src_dir }}/dev/environment-setup.sh && + kayobe overcloud database backup &> {{ logs_dir }}/ansible/database-backup + executable: /bin/bash