Ansible role to deploy multiple clouds resources
Go to file
Clark Boylan 472065fb05 Don't use deprecated when jinja2 syntax
Under current ansible 2.6 we get the following warning type when running
the cloud launcher:

  [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ 'security_groups_rules' in profiles|selectattr('name', 'equalto', item_profile)|list|first }}

Fix this by removing the outer {{ }} from the when statement strings.

Change-Id: I71363f628a8c03784f2ea3fc7082246a6f092f36
2018-09-06 13:53:09 -07:00
defaults Add ability to download an image from the Internet to upload it to Glance 2016-09-01 23:35:40 +02:00
doc/source Add doc folder 2016-05-04 13:41:57 +02:00
meta Add metadata to role 2016-04-29 22:41:47 +02:00
tasks Don't use deprecated when jinja2 syntax 2018-09-06 13:53:09 -07:00
tests Add quotas support for the cloud launcher 2016-10-14 21:01:39 +00:00
.gitignore Add .gitignore 2016-05-04 13:39:21 +02:00
.gitreview Add .gitreview file 2016-05-04 13:06:30 +02:00
LICENSE Add Apache license file 2016-05-04 13:07:36 +02:00
README.rst Switch README from markdown to rst 2016-05-04 13:31:43 +02:00
requirements.txt Pin Ansible version to 2.1.2.0 2016-09-29 21:12:31 +02:00
resources.yml.sample Initial support for regions 2016-08-25 13:46:33 -04:00
setup.cfg Add setup.py and setup.cfg 2016-05-04 13:35:32 +02:00
setup.py Add setup.py and setup.cfg 2016-05-04 13:35:32 +02:00
test-requirements.txt Add test-requirements.txt for tox venvs 2016-05-05 09:08:45 +00:00
tox.ini Run cloud launcher with latest release candidate 2016-09-17 19:32:44 +00:00

ansible-role-cloud-launcher

Ansible role to launch multiple OpenStack Clouds resources

Description

ansible-role-cloud-launcher is an Ansible role that allows to launch multiple OpenStack clouds resources. Resources can be defined in a cloud by cloud basis or defined in a profile, which may be reused by more than one cloud.

Requirements

shade library needs to be installed, as that is required by the OpenStack Ansible modules.

Role Variables

The role expects variables fed by ansible-playbook on the CLI, for example:

ansible-playbook -i inventory play.yml -e "@resources.yml"

The role expects the resources variables file to have two dict variables, profiles and clouds.

profiles contains a list of OpenStack resources definitions that are meant to be reused by one or more clouds.

clouds contains a list of clouds the role will launch resources on. Each cloud definition will have the OSCC cloud name, a list of profiles the cloud will reuse and a list of resources specific to that cloud.

Please check resources.yml.sample on this repository for a full-blown example.

Dependencies

None

Example playbook

---
- hosts: localhost
  connection: local
  gather_facts: false
  roles:
    - { role: ansible-role-cloud-launcher }