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
This commit is contained in:
committed by
Dmitriy Rabotyagov (noonedeadpunk)
parent
ee679637f6
commit
23c34a79a2
@@ -16,7 +16,7 @@
|
|||||||
rabbitmq_cluster_name: openstack
|
rabbitmq_cluster_name: openstack
|
||||||
|
|
||||||
# Ensure that the package state matches the global setting
|
# Ensure that the package state matches the global setting
|
||||||
rabbitmq_package_state: "{{ package_state }}"
|
rabbitmq_package_state: "{{ rabbitmq_upgrade | default(False) | bool | ternary('latest', 'present') }}"
|
||||||
|
|
||||||
# Ensure that all rabbitmq containers get a fixed mac address
|
# Ensure that all rabbitmq containers get a fixed mac address
|
||||||
lxc_container_fixed_mac: true
|
lxc_container_fixed_mac: true
|
||||||
|
|||||||
Reference in New Issue
Block a user