BaR Rename the mysql_short_bootstrap_name

The puppet variable 'bootstrap_nodeid' is no longer valid,
instead we need to use 'mysql_short_bootstrap_name'.

Also added the logic around the variable.

Change-Id: If02b0b234867ae00dc7f7c53c4253c2a21448220
Closes-Bug: 1864059
This commit is contained in:
Juan Badia Payno 2020-02-20 09:32:16 +01:00
parent 952c2005fc
commit 5126e6c2a4

View File

@ -49,15 +49,17 @@
- name: Set bootstrap nodeid - name: Set bootstrap nodeid
become: true become: true
set_fact: register: tripleo_backup_and_restore_bootstrap_nodeid
tripleo_backup_and_restore_bootstrap_nodeid: "{{ lookup('hiera', 'bootstrap_nodeid _hierarchy_file=/etc/puppet/hiera.yml') }}" command: |
/bin/hiera -c {{ tripleo_backup_and_restore_hiera_config_file }} 'mysql_short_bootstrap_node_name'
tags: tags:
- bar_setup_rear - bar_setup_rear
- name: List enabled services by node - name: List enabled services by node
become: true become: true
set_fact: register: tripleo_backup_and_restore_enabled_services
tripleo_backup_and_restore_restore_enabled_services: "{{ lookup('hiera', 'service_names _hierarchy_file=/etc/puppet/hiera.yml') }}" command: |
/bin/hiera -c {{ tripleo_backup_and_restore_hiera_config_file }} 'service_names'
tags: tags:
- bar_setup_rear - bar_setup_rear
@ -66,8 +68,13 @@
set_fact: set_fact:
tripleo_backup_and_restore_exclude_paths: tripleo_backup_and_restore_exclude_paths:
- "{{ tripleo_backup_and_restore_exclude_paths_common }}" - "{{ tripleo_backup_and_restore_exclude_paths_common }}"
- "{{ tripleo_backup_and_restore_exclude_paths_compute }}" - "{{ (tripleo_backup_and_restore_enabled_services.stdout is search('nova_compute')) |
- "{{ tripleo_backup_and_restore_exclude_paths_controller }}" ternary(tripleo_backup_and_restore_exclude_paths_compute, []) }}"
- "{{ (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|bool) |
ternary(tripleo_backup_and_restore_exclude_paths_controller, []) }}"
tags: tags:
- bar_setup_rear - bar_setup_rear