diff options
Diffstat (limited to 'docker/services/ceilometer-agent-central.yaml')
-rw-r--r-- | docker/services/ceilometer-agent-central.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/services/ceilometer-agent-central.yaml b/docker/services/ceilometer-agent-central.yaml index d772462d..6342c82e 100644 --- a/docker/services/ceilometer-agent-central.yaml +++ b/docker/services/ceilometer-agent-central.yaml @@ -36,6 +36,10 @@ parameters: default: {} description: Parameters specific to the role type: json + UpgradeRemoveUnusedPackages: + default: false + description: Remove package if the service is being disabled during upgrade + type: boolean resources: @@ -58,6 +62,8 @@ outputs: value: service_name: {get_attr: [CeilometerAgentCentralBase, role_data, service_name]} config_settings: {get_attr: [CeilometerAgentCentralBase, role_data, config_settings]} + logging_source: {get_attr: [CeilometerAgentCentralBase, role_data, logging_source]} + logging_groups: {get_attr: [CeilometerAgentCentralBase, role_data, logging_groups]} step_config: &step_config get_attr: [CeilometerAgentCentralBase, role_data, step_config] service_config_settings: {get_attr: [CeilometerAgentCentralBase, role_data, service_config_settings]} @@ -125,3 +131,8 @@ outputs: - name: Stop and disable ceilometer agent central service tags: step2 service: name=openstack-ceilometer-central state=stopped enabled=no + - name: Remove openstack-ceilometer-central package if operator requests it + yum: name=openstack-ceilometer-central state=removed + tags: step2 + ignore_errors: True + when: {get_param: UpgradeRemoveUnusedPackages} |