diff options
Diffstat (limited to 'docker/services/aodh-evaluator.yaml')
-rw-r--r-- | docker/services/aodh-evaluator.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/services/aodh-evaluator.yaml b/docker/services/aodh-evaluator.yaml index 86bdfdf9..fda6faa2 100644 --- a/docker/services/aodh-evaluator.yaml +++ b/docker/services/aodh-evaluator.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: @@ -63,6 +67,8 @@ outputs: config_settings: map_merge: - get_attr: [AodhEvaluatorBase, role_data, config_settings] + logging_source: {get_attr: [AodhEvaluatorBase, role_data, logging_source]} + logging_groups: {get_attr: [AodhEvaluatorBase, role_data, logging_groups]} step_config: &step_config list_join: - "\n" @@ -112,3 +118,8 @@ outputs: - name: Stop and disable openstack-aodh-evaluator service tags: step2 service: name=openstack-aodh-evaluator.service state=stopped enabled=no + - name: Remove openstack-aodh-evaluator package if operator requests it + yum: name=openstack-aodh-evaluator state=removed + tags: step2 + ignore_errors: True + when: {get_param: UpgradeRemoveUnusedPackages} |