Files
tripleo-operator-ansible/roles/tripleo_undercloud_backup
Cédric Jeanneret f7a29d5aa2 Ansible-2.14 compatibility
with newer ansible coming, the "warn" parameter is removed and raises an
error.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/864392
Change-Id: I934211aa437fc268288de06fc39545c98f1746c5
2022-11-14 15:33:21 +00:00
..
2021-09-23 15:33:06 +02:00
2022-11-14 15:33:21 +00:00
2020-01-21 10:12:00 -07:00

tripleo_undercloud_backup

A role to run backup of a TripleO undercloud.

Requirements

None.

Role Variables

  • tripleo_undercloud_backup_become: (Boolean) Run the command as root. This needs to be true as the commands require root privileges to run. Default: true
  • 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: false
  • tripleo_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 of tripleo_generate_scripts or False if tripleo_generate_scripts is not defined.
  • tripleo_undercloud_backup_generate_scripts_only: (Boolean) Do not run the actual command - to be used in conjunction with tripleo_undercloud_backup_generate_scripts. By default uses the value of tripleo_generate_scripts_only or False if tripleo_generate_scripts_only is 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_init: (String) Flag to initialize environment for backup, using rear or nfs as args which will check for packages, install and configure ReaR or NFS server. WARNING: This flag will be deprecated and replaced by --setup-rear and --setup-nfs.
  • tripleo_undercloud_backup_setup_nfs: (Boolean) Flag to setup the NFS server on the backup node which will install required packages and configuration.
  • tripleo_undercloud_backup_setup_rear: (Boolean) Flag to setup ReaR on undercloud which will install and configure ReaR.
  • tripleo_undercloud_backup_extra_vars: (String) Flag to set additional variables as JSON or as an absolute path of a JSON or YAML file type.
  • tripleo_undercloud_backup_log_combine: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true
  • tripleo_undercloud_backup_log_output: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true
  • tripleo_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: 10
  • tripleo_undercloud_backup_timeout: (Integer) Timeout for the backup command. Default: 7200
  • tripleo_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