tripleo-ansible/tripleo_ansible/roles/tripleo-ceph-fetch-dir
John Fulton 3d2d6393ea Improve local_ceph_ansible_fetch_directory_backup error msg
Improve error handling if deployer sets the variable for
local_ceph_ansible_fetch_directory_backup to a directory
which ansible cannot write to.

Instead of failing the deployment with a message that the
object has no attribute stat, fail with a message explaining
what happened and how to fix.

Change-Id: Ib13f367b23126df35902a260ab25f99adc898245
2019-08-01 13:01:13 +00:00
..
meta Introduce ansible roles for ceph preparation 2019-06-29 08:57:33 -04:00
molecule/default Add molecule test structure to ceph roles 2019-07-24 10:47:34 -05:00
tasks Improve local_ceph_ansible_fetch_directory_backup error msg 2019-08-01 13:01:13 +00:00
vars Introduce ansible roles for ceph preparation 2019-06-29 08:57:33 -04:00
README.md Introduce ansible roles for ceph preparation 2019-06-29 08:57:33 -04:00

README.md

Ansible Role to manage a ceph-ansible fetch directory

When scaling Ceph monitors, ceph-ansible uses context from the fetch_directory to prevent new monitors from trying to bootstrap a new Ceph cluster

This role saves the fetch_directory to either Swift or a local directory after each ceph-ansible playbook run; and if there is a backup of fetch directory in Swift or the specificied local directory, restores it before each ceph-ansible playbook run.

The main.yml does not include the backup_and_clean.yml because that should be run separately as a post task as needed by a separate import using tasks_from.

Requirements

None

Role Variables

  • ceph_ansible_tarball_name: The name of the file which will contain a tar.gz backup of the ceph-ansible fetch directory. Used for both the local and swift backup methods. (default: 'temporary_dir.tar.gz')

  • old_ceph_ansible_tarball_name: The name of the file which will be saved in /tmp when the ceph-ansible fetch directory is downloaded from Swift. Not used for local backups and only used for Swift backups. (default: 'temporary_dir_old.tar.gz')

  • new_ceph_ansible_tarball_name: The name of the file which will be saved in /tmp after ceph-ansible runs and then uploaded to Swift. Not used for local backups only only used for Swift backups. (default: 'temporary_dir_new.tar.gz')

Dependencies

  • tripleo-ceph-common
  • tripleo-ceph-work-dir