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_become: false
tripleo_persist_storage_root_dir: /var/lib/mistral/tripleo-persist

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.

Scenario: default

Driver: docker
Example default playbook
- hosts: all
  name: Converge
  pre_tasks:
  - file:
      mode: 448
      path: '{{ tripleo_persist_storage_root_dir }}'
      state: directory
    name: Create directory
  tasks:
  - import_role:
      name: tripleo-persist
      tasks_from: persist.yml
    name: Run persist
  - import_role:
      name: tripleo-persist
      tasks_from: restore.yml
    name: Run restore
  - import_role:
      name: tripleo-persist
      tasks_from: cleanup.yml
    name: Run cleanup
  vars:
    tripleo_persist_dir: /root
    tripleo_persist_storage_root_dir: /tmp/tripleo_persist_storage