00097c026b03f0b01ffd3a7b328adf190dbbc8b2
Go to file
Jesse Pretorius 00097c026b Allow tags to be used for MQ tasks
The use of 'include_tasks' and a loop of variables creates
a situation where a user is unable to use tags to scope the
inclusion of only the MQ tasks when running the playbooks.
The use-case this is important for is when the rabbitmq
containers are destroyed and rebuilt in order to resolve
an issue with them, and the user wishes to quickly recreate
all the vhosts/users.
Ansible's 'include_tasks' is a dynamic inclusion, and dynamic
inclusions are not included when using tags. The nice thing
about dynamic inclusions is that they completely skip all
tasks when the condition does not apply, cutting down deploy
time. However, given the use-case, we should rather take on
the extra deployment time.
This patch changes the dynamic inclusion to a static one,
adds a 'common-mq' tag to cover all MQ implementations,
and re-implements the 'common-rabbitmq' tag for the tasks
that relate to RabbitMQ specifically.
It also implements conditionals for each task set so that
the rpc/notify tasks can be skipped if a vhost/user is not
required for that purpose (eg: swift does not use RPC, and
most roles will not use notifications by default).
Depends-On: https://review.openstack.org/588191
Change-Id: Ied4df931d0464173649c39ac82253c541b195cb1
2018年08月07日 12:58:15 +01:00
2018年03月15日 07:33:03 +00:00
2018年08月07日 12:58:15 +01:00
2018年07月31日 08:31:52 +01:00
2018年06月24日 17:48:59 +00:00
2018年03月27日 15:50:59 +00:00
2016年07月01日 09:35:24 -07:00
2017年12月06日 00:05:56 +00:00
2018年05月08日 10:11:17 +08:00
2016年07月01日 09:35:24 -07:00
2016年09月27日 18:01:18 +00:00
2018年04月30日 05:13:43 +00:00
2017年03月02日 11:51:36 +00:00
2018年07月02日 12:38:54 -04:00
2018年06月06日 00:40:47 +00:00

Team and repository tags

image

OpenStack-Ansible CloudKitty

tags

openstack, cloudkitty, cloud, ansible

category

*nix

This Ansible role installs and configures OpenStack cloudkitty.

This role will install the following Upstart services:
  • cloudkitty-api
  • cloudkitty-processor

Required Variables

 cloudkitty_service_password
 cloudkitty_oslomsg_rpc_password
 cloudkitty_oslomsg_notify_password
 cloudkitty_container_mysql_password
 cloudkitty_galera_address

Example Playbook

 -name: Install cloudkitty service
 hosts: cloudkitty_all
 user: root
 roles:
 -{role:"os_cloudkitty",tags:["os-cloudkitty"]}
 vars:
 external_lb_vip_address:172.16.24.1
 internal_lb_vip_address:192.168.0.1
 cloudkitty_galera_address:"{{ internal_lb_vip_address }}"
 cloudkitty_container_mysql_password:"SuperSecretePassword1"
 cloudkitty_service_password:"SuperSecretePassword2"
 cloudkitty_oslomsg_rpc_password:"SuperSecretePassword3"
 cloudkitty_oslomsg_notify_password:"SuperSecretePassword4"
Documentation for the project can be found at:

https://docs.openstack.org/openstack-ansible-os_cloudkitty/latest/

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/openstack-ansible-os_cloudkitty/

The project source code repository is located at:

https://git.openstack.org/cgit/openstack/openstack-ansible-os_cloudkitty/

The project home is at:

https://launchpad.net/openstack-ansible

Description
Role os_cloudkitty for OpenStack-Ansible
Readme 2.8 MiB
Languages
Python 56.4%
Jinja 43.6%