openstack-ansible-os_tacker/tasks/tacker_messaging_setup.yml
Andy Smith 96e911f446 Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters replace
the rabbitmq values and are used to generate the messaging
transport_url for the service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Add transport_url generation to conf
* Add oslo.messaging to tests inventory and update tests
* Install extra packages for optional drivers

Change-Id: I88fa6bd04ebad08211570d46ed464409b5896123
2018-07-26 09:08:53 +00:00

29 lines
699 B
YAML

---
# tacker messaging setup
# TODO(ansmith): change to common messaging setup
- name: Ensure Rabbitmq vhost
rabbitmq_vhost:
name: "{{ tacker_oslomsg_rpc_vhost }}"
state: "present"
delegate_to: "{{ groups['oslomsg_rpc_all'][0] }}"
tags:
- tacker-rabbitmq
- tacker-rabbitmq-vhost
- name: Ensure rabbitmq user
rabbitmq_user:
user: "{{ tacker_oslomsg_rpc_userid }}"
password: "{{ tacker_oslomsg_rpc_password }}"
vhost: "{{ tacker_oslomsg_rpc_vhost }}"
configure_priv: ".*"
read_priv: ".*"
write_priv: ".*"
state: "present"
delegate_to: "{{ groups['oslomsg_rpc_all'][0] }}"
no_log: true
tags:
- tacker-rabbitmq
- tacker-rabbitmq-user