Role - tripleo-persist¶
Role Documentation¶
Welcome to the “tripleo-persist” role documentation.
Role Defaults¶
This section highlights all of the defaults and variables set within the “tripleo-persist” role.
tripleo_persist_storage_root_dir: /var/lib/mistral/tripleo-persist
tripleo_persist_storage_root_become: false
Molecule Scenarios¶
Molecule is being used to test the “tripleo-persist” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.
- Driver: podman
Scenario: default¶
Molecule Inventory¶
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
Example default playbook¶
- name: Converge
hosts: all
vars:
tripleo_persist_storage_root_dir: /tmp/tripleo_persist_storage
tripleo_persist_dir: /root
pre_tasks:
- name: Create directory
file:
path: '{{ tripleo_persist_storage_root_dir }}'
state: directory
mode: 0700
tasks:
- name: Run persist
import_role:
name: tripleo-persist
tasks_from: persist.yml
- name: Run restore
import_role:
name: tripleo-persist
tasks_from: restore.yml
- name: Run cleanup
import_role:
name: tripleo-persist
tasks_from: cleanup.yml