openstack-ansible/inventory/group_vars/rabbitmq_all.yml
Dmitriy Rabotyagov 23c34a79a2 Change rabbitmq_package_state logic
This patch sets dependency of rabbitmq_package_state from
rabbitmq_upgrade flag. So when rabbitmq_upgrade is set to True, we need
packages to be updated.
When it's False, they should be left unchanged.

Depends-On: https://review.opendev.org/693841
Change-Id: I709adf406d8ffc493d632e0a8382938feb7c2d7c
2019-11-14 14:35:40 +00:00

23 lines
878 B
YAML

---
# Copyright 2016, Rackspace US, Inc.
#
# 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.
rabbitmq_cluster_name: openstack
# Ensure that the package state matches the global setting
rabbitmq_package_state: "{{ rabbitmq_upgrade | default(False) | bool | ternary('latest', 'present') }}"
# Ensure that all rabbitmq containers get a fixed mac address
lxc_container_fixed_mac: true