Files
tripleo-operator-ansible/roles/tripleo_overcloud_backup
Juan Pablo Lopez f90c7a44b6 Create tripleo_overcloud_backup role
- tripleo_overcloud_backup role was added to match python-tripleoclient
  interface for B&R overcloud command. It follows the same structure
  as tripleo_undercloud_backup role.
- 'tripleo_overcloud_backup_init' string variable was added for
  the flag '--init' for installing and configure 'rear' and 'nfs'.
  Depending on the value. WARNING: this flag will be deprecated
  in favor of '--setup-nfs' and '--setup-rear'.
- 'tripleo_overcloud_backup_setup_nfs' boolean variable was added
  for the flag '--setup-nfs' which will install and configure NFS
  server. Default to: false.
- 'tripleo_overcloud_backup_setup_rear' boolean variable was added
  for the flag '--setup-rear' which will install and configure ReaR
  on the overcloud controllers. Default to: false.
- 'tripleo_overcloud_backup_storage_ip' string variable was added
  for the flag '--storage-ip' which will allows to specify an ip for
  NFS / Backup server. It has precedence over '--extra-vars'. WARNING:
  this flag will be deprecated in favor of '--extra-vars'.
- 'tripleo_overcloud_backup_extra_vars' string variable was added
  for '--extra-vars' variable for passing variables as JSON string
  or JSON / YAML path.
- zuul.d updated to include molecule tests

Depends on: https://review.opendev.org/c/openstack/python-tripleoclient/+/771589

Change-Id: I0bdb9ce1e434f7ffd75d1931a70a451cdc48bc90
2021-02-09 10:27:01 +00:00
..
2021-02-09 10:27:01 +00:00
2021-02-09 10:27:01 +00:00

tripleo_overcloud_backup

A role to run backup of a TripleO overcloud.

Requirements

None.

Role Variables

  • tripleo_overcloud_backup_debug: (Boolean) Flag used to enable the debug version of commands. Default: false
  • tripleo_overcloud_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_overcloud_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_overcloud_backup_home_dir: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}"
  • tripleo_overcloud_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_overcloud_backup_setup_nfs: (Boolean) Flag to setup the NFS server on the backup node which will install required packages and configuration.
  • tripleo_overcloud_backup_setup_rear: (Boolean) Flag to setup ReaR on undercloud which will install and configure ReaR.
  • tripleo_overcloud_backup_storage_ip: (String) Flag to setup an ip for the NFS / Backup server. WARNING: This flag will be deprecated in favor of '--extra-vars' which will allow to pass this and other variables.
  • tripleo_overcloud_backup_extra_vars: (String) Flag to set additional variables as JSON or as an absolute path of a JSON or YAML file type.
  • tripleo_overcloud_backup_log_combine: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true
  • tripleo_overcloud_backup_log_output: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true
  • tripleo_overcloud_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_overcloud_backup_timeout: (Integer) Timeout for the backup command. Default: 7200
  • tripleo_overcloud_backup_log: (String) Backup log file path. Default: "{{ tripleo_undercloud_backup_home_dir }}/undercloud_backup.log"

Output Variables

  • tripleo_overcloud_backup_result: Ansible shell execution results

Dependencies

None.

Example Playbook

Example backup execution playbook

- hosts: Undercloud
  gather_facts: true
  tasks:
    - name: Backup overcloud
      import_role:
        name: tripleo_overcloud_backup
      vars:
        tripleo_overcloud_backup_debug: true

License

Apache-2.0