Exclude database controllers path only if they are a controller node.

We found that by mistake we are excluding the controllers
path in the Undercloud node.

This patch makes sure we exclude the path only if its
a controller node (the node has galera and mysql).

Change-Id: I331d89ebf07eb56870a84330ff7ad2de629913bf
This commit is contained in:
Carlos Camacho 2019-09-26 11:38:13 +02:00
parent b4cc69276c
commit 50098bc1b6
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@
(tripleo_backup_and_restore_enabled_services.stdout is search('nova_compute')) else [] }}"
- "{{ (tripleo_backup_and_restore_exclude_paths_controller) if
(tripleo_backup_and_restore_bootstrap_nodeid.stdout != tripleo_backup_and_restore_hostname.stdout and
tripleo_backup_and_restore_enabled_services.stdout is search('pacemaker') and
tripleo_backup_and_restore_enabled_services.stdout is search('mysql') and
tripleo_backup_and_restore_exclude_paths_controller_non_bootrapnode) else [] }}"
tags:
- bar_setup_rear