From 51abb016b32b6db291d5acf4d6052b019fad99c0 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Mon, 30 Jul 2018 12:56:40 +0100 Subject: [PATCH] Default MQ RPC/Notify credentials/vhosts to match When the RPC and Notify service are the same, the credentials must match - otherwise the tasks to create the user/password will overwrite with each other. If the two clusters are different, then the matching credentials and vhost will not be a problem. However, if the deployer really wishes to make sure they're different, then the vars can be overridden. Also, to ensure that the SSL value is consistently set in the conf file, we apply the bool filter. We also use the 'notify' SSL setting as the messaging system for Notifications is more likely to remain rabbitmq in our default deployment with qrouterd becoming the default for RPC messaging. Change-Id: I0d5285eeebe94adda39b93e61e79be5673b7347d --- defaults/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 4512c3a..9eff58a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -76,8 +76,9 @@ sahara_oslomsg_notify_transport: "{{ oslomsg_notify_transport | default('rabbit' sahara_oslomsg_notify_servers: "{{ oslomsg_notify_servers | default('127.0.0.1') }}" sahara_oslomsg_notify_port: "{{ oslomsg_notify_port | default('5672') }}" sahara_oslomsg_notify_use_ssl: "{{ oslomsg_notify_use_ssl | default(False) }}" -sahara_oslomsg_notify_userid: sahara -sahara_oslomsg_notify_vhost: /sahara +sahara_oslomsg_notify_userid: "{{ sahara_oslomsg_rpc_userid }}" +sahara_oslomsg_notify_password: "{{ sahara_oslomsg_rpc_password }}" +sahara_oslomsg_notify_vhost: "{{ sahara_oslomsg_rpc_vhost }}" ## Database info sahara_db_setup_host: "{{ ('galera_all' in groups) | ternary(groups['galera_all'][0], 'localhost') }}"