A new global parameter is introduced: tripleo_generate_scripts_only It allows to get the roles running as usual, but it won't actually execute the "shell" module. With the "tripleo_generate_scripts", it allows to get everything ready for manual investigations, with the generated scripts ready. Of course, every role can be instructed to only generate scripts, using the standard <role_name>_generate_scripts_only parameter. Change-Id: I841743fb6c2c24e4a3d86598f99322022b27804d
tripleo_undercloud_backup
A role to run backup of a TripleO undercloud.
Requirements
None.
Role Variables
tripleo_undercloud_backup_add_path: (List) List of additional filesystem paths to backup. Default: []tripleo_undercloud_backup_debug: (Boolean) Flag used to enable the debug version of commands. Default: falsetripleo_undercloud_backup_generate_scripts: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value oftripleo_generate_scriptsor False iftripleo_generate_scriptsis not defined.tripleo_undercloud_backup_generate_scripts_only: (Boolean) Do not run the actual command - to be used in conjonction withtripleo_undercloud_backup_generate_scripts. By default uses the value oftripleo_generate_scripts_onlyor False iftripleo_generate_scripts_onlyis not defined.tripleo_undercloud_backup_exclude_path: (List) List of filesystems path to skip backing up. Default: []tripleo_undercloud_backup_home_dir: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}"tripleo_undercloud_backup_log_combine: (Boolean) Flag to combine stdout and stderr in the logfile. Default: truetripleo_undercloud_backup_log_output: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: truetripleo_undercloud_backup_poll: (Integer) Number of seconds to wait between checks to see if the backup command has completed. This should be set to a value greater or equal to 1. Default: 10tripleo_undercloud_backup_timeout: (Integer) Timeout for the backup command. Default: 7200tripleo_undercloud_backup_log: (String) Backup log file path. Default: "{{ tripleo_undercloud_backup_home_dir }}/undercloud_backup.log"
Output Variables
tripleo_undercloud_backup_result: Ansible shell execution results
Dependencies
None.
Example Playbook
Example backup execution playbook
- hosts: undercloud
gather_facts: true
tasks:
- name: Backup undercloud
import_role:
name: tripleo_undercloud_backup
vars:
tripleo_undercloud_backup_debug: true
License
Apache-2.0