RETIRED, Ansible role to perform common tasks to manage OpenStack clouds
Go to file
Sam Doran a9cc0b3673 Use new variable name in tasks 2018-04-27 17:11:10 -04:00
defaults Use custom docker_facts module to get Docker info 2018-04-23 15:37:08 -04:00
handlers Initial commit 2018-04-23 12:04:58 -04:00
library Improve docker_facts plugin 2018-04-27 17:06:03 -04:00
meta Initial commit 2018-04-23 12:04:58 -04:00
tasks Use new variable name in tasks 2018-04-27 17:11:10 -04:00
README.md Use custom docker_facts module to get Docker info 2018-04-23 15:37:08 -04:00

README.md

OpenStack Operations

Perform various common OpenStack operations by calling this role with an action and appropriate variables.

Requirements

None

Role Variables

Variables used for cleaning up Docker

Name Default Value Description
operations_docker_cleanup [see defaults/main.yml] Filters used to determine which items will be removed. Uses Docker filter syntax. See Docker guides for images, containers, and volumes for filter options.

Variables for fetching logs

Name Default Value Description
operations_log_destination {{ playbook_dir }} Path where logs will be stored when fetched from remote systems.

Variables for restarting services

Name Default Value Description
operations_service_names [] List of services to restart on target systems.

Dependencies

None

Example Playbook

- hosts: all
  tasks:
    - name: Restart a service
      import_role:
        name: openstack-operations
        tasks_from: restart_service.yml
      vars:
        operations_task: restart_service
        operations_service_names:
          - docker
          - keystone
          - mariadb

    - name: Cleanup unused Docker images, containers, and volumes
      import_role:
        name: openstack-operations
        tasks_from: cleanup_docker.yml

    - name: Fetch logs
      import_role:
        name: openstack-operations
        tasks_from: fetch_logs.yml

License

Apache 2.0