diff options
Diffstat (limited to 'docker/services/ceilometer-agent-compute.yaml')
-rw-r--r-- | docker/services/ceilometer-agent-compute.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docker/services/ceilometer-agent-compute.yaml b/docker/services/ceilometer-agent-compute.yaml index 90b30d46..1ee9f492 100644 --- a/docker/services/ceilometer-agent-compute.yaml +++ b/docker/services/ceilometer-agent-compute.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: [CeilometerAgentComputeBase, role_data, service_name]} config_settings: {get_attr: [CeilometerAgentComputeBase, role_data, config_settings]} + logging_source: {get_attr: [CeilometerAgentComputeBase, role_data, logging_source]} + logging_groups: {get_attr: [CeilometerAgentComputeBase, role_data, logging_groups]} step_config: &step_config get_attr: [CeilometerAgentComputeBase, role_data, step_config] service_config_settings: {get_attr: [CeilometerAgentComputeBase, role_data, service_config_settings]} @@ -116,3 +122,13 @@ outputs: tags: step2 service: name=openstack-ceilometer-polling state=stopped enabled=no when: openstack_ceilometer_polling_enabled.rc|default('') == 0 + - name: Remove openstack-ceilometer-compute package if operator requests it + yum: name=openstack-ceilometer-compute state=removed + tags: step2 + ignore_errors: True + when: {get_param: UpgradeRemoveUnusedPackages} + - name: Remove openstack-ceilometer-polling package if operator requests it + yum: name=openstack-ceilometer-polling state=removed + tags: step2 + ignore_errors: True + when: {get_param: UpgradeRemoveUnusedPackages} |