af14e9aa70
In order to accommodate the changes we've made in the RPC messaging systems the force flag must be set to `true` when deploying Rocky in an upgrade situation. Without this flag set to true existing users will not have their RPC passwords updated and will result in large scale, obscure, outages across the cloud. Change-Id: I81ec30bb089908dfa25b248dc4fe7463553457ce Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
---
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Usage:
|
|
# To use this common task to create to create the user and vhost if
|
|
# needed for the messaging backend configured for Notify communications.
|
|
# To used this common task, the variables "notify_user", "notify_password"
|
|
# and "notify_vhost" must be set.
|
|
|
|
- name: Ensure Notify Rabbitmq vhost
|
|
rabbitmq_vhost:
|
|
name: "{{ notify_vhost }}"
|
|
state: "present"
|
|
delegate_to: "{{ groups[oslomsg_notify_host_group][0] }}"
|
|
tags:
|
|
- common-rabbitmq
|
|
when:
|
|
- oslomsg_notify_transport == "rabbit"
|
|
|
|
- name: Ensure Notify Rabbitmq user
|
|
rabbitmq_user:
|
|
user: "{{ notify_user }}"
|
|
password: "{{ notify_password }}"
|
|
vhost: "{{ notify_vhost }}"
|
|
configure_priv: ".*"
|
|
read_priv: ".*"
|
|
write_priv: ".*"
|
|
state: "present"
|
|
force: true
|
|
delegate_to: "{{ groups[oslomsg_notify_host_group][0] }}"
|
|
no_log: true
|
|
tags:
|
|
- common-rabbitmq
|
|
when:
|
|
- oslomsg_notify_transport == "rabbit"
|