diff options
Diffstat (limited to 'docker/services/sahara-engine.yaml')
-rw-r--r-- | docker/services/sahara-engine.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/services/sahara-engine.yaml b/docker/services/sahara-engine.yaml index 08841160..0a061bd3 100644 --- a/docker/services/sahara-engine.yaml +++ b/docker/services/sahara-engine.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: @@ -121,3 +125,8 @@ outputs: - name: Stop and disable sahara_engine service tags: step2 service: name=openstack-sahara-engine state=stopped enabled=no + - name: Remove openstack-sahara-engine package if operator requests it + yum: name=openstack-sahara-engine state=removed + tags: step2 + ignore_errors: True + when: {get_param: UpgradeRemoveUnusedPackages} |