tripleo-common/roles/tripleo-persist
Sorin Sbarnea a1495d5f0f Fix ansible-lint errors
Prepare bumping ansible-lint by solving few linting errors:
- unamed tasks
- use of shell instead of module
- newlines between tasks (visual)
- boolean comparison
- when clauses that can be split
- missing galaxy_info sections in meta.yml
- spaces around jinja {{ variables }}
- lack of pipefail on shell blocks with pipe
- duplicate dictionary keys

Change-Id: I73ed9a031bd579bc6213923edb9c4288d0302454
Needed-By: https://review.opendev.org/#/c/665445/
2019-06-19 16:56:49 +01:00
..
defaults Ansible role for data presistence and restoration 2019-01-17 14:05:55 +01:00
tasks Fix ansible-lint errors 2019-06-19 16:56:49 +01:00
README.md Ansible role for data presistence and restoration 2019-01-17 14:05:55 +01:00
test-playbook.yml Ansible role for data presistence and restoration 2019-01-17 14:05:55 +01:00

README.md

tripleo-persist

An Ansible role to temporary persist a files on undercloud and later restore them.

Role variables

Required:

  • tripleo_persist_dir -- directory on the target host to persist

Optional:

  • tripleo_persist_storage_root_dir -- directory on the Ansible host under which all data is stored (defaults to "/var/lib/mistral/tripleo-persist")
  • tripleo_persist_storage_root_become -- whether to use become when creating the storage root directory (defaults to false)

Test playbook

Assuming you have tripleo-inventory.yml generated, you can run the test playbook like:

ANSIBLE_ROLES_PATH=tripleo-common/roles \
ANSIBLE_HOST_KEY_CHECKING=False \
ansible-playbook
    -i tripleo-inventory.yml \
    tripleo-common/roles/tripleo-persist/test-playbook.yml \
    -e persist=true

ANSIBLE_ROLES_PATH=tripleo-common/roles \
ANSIBLE_HOST_KEY_CHECKING=False \
ansible-playbook
    -i tripleo-inventory.yml \
    tripleo-common/roles/tripleo-persist/test-playbook.yml \
    -e restore=true

License

Free software: Apache License (2.0)

Author Information

OpenStack TripleO team