Merge "Added controller_group_name to override group name" into stable/train
This commit is contained in:
commit
4829319cdc
|
@ -23,10 +23,22 @@
|
|||
tags:
|
||||
- bar_create_recover_image
|
||||
|
||||
- name: Check Controller group
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- name: Check the name controller group
|
||||
assert:
|
||||
that:
|
||||
- tripleo_controller_group_name in groups
|
||||
- ( groups[tripleo_controller_group_name] | length ) > 0
|
||||
fail_msg: "There is no server on {{ tripleo_controller_group_name }} groups"
|
||||
tags:
|
||||
- bar_create_recover_image
|
||||
|
||||
- name: TripleO Controller backup
|
||||
hosts: Controller
|
||||
hosts: '{{ tripleo_controller_group_name }}'
|
||||
remote_user: "{{ tripleo_target_user | default(lookup('env', 'USER')) }}"
|
||||
serial: "{{ tripleo_backup_and_restore_enable_snapshots|bool | ternary(1, groups['Controller']|length) }}"
|
||||
serial: "{{ tripleo_backup_and_restore_enable_snapshots|bool | ternary(1, groups[tripleo_controller_group_name]|length) }}"
|
||||
vars_files:
|
||||
../roles/backup-and-restore/defaults/main.yml
|
||||
become: true
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# under the License.
|
||||
|
||||
- name: TripleO Controller ReaR installation and configuration.
|
||||
hosts: Controller
|
||||
hosts: '{{ tripleo_controller_group_name }}'
|
||||
remote_user: "{{ tripleo_target_user | default(lookup('env', 'USER')) }}"
|
||||
become: true
|
||||
roles:
|
||||
|
|
|
@ -38,6 +38,8 @@ tripleo_backup_and_restore_enable_snapshots: true
|
|||
# All variables within this role should have a prefix of "tripleo_backup_and_restore"
|
||||
tripleo_backup_and_restore_hide_sensitive_logs: "{{ hide_sensitive_logs | default(true) }}"
|
||||
tripleo_backup_and_restore_debug: false
|
||||
tripleo_controller_group_name: "{{ controller_group_name | default('Controller') }}"
|
||||
|
||||
# By default this should be the Undercloud node
|
||||
tripleo_backup_and_restore_server: 192.168.24.1
|
||||
tripleo_backup_and_restore_shared_storage_folder: /ctl_plane_backups
|
||||
|
|
Loading…
Reference in New Issue