diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-10-10 04:38:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-10-10 04:38:30 +0000 |
commit | af040d1e9418e6f266cfe8e2d1111ac80aaa7b94 (patch) | |
tree | 3fccbb469b23a6dc4e16de11ef3d1e0cf102deff /docker/services/cinder-scheduler.yaml | |
parent | 43062a1eae30a7a0ade11ee2a1841def93fdc0c8 (diff) | |
parent | 6d150b03cff457bf43e8c2b55ba03ace20d6c244 (diff) |
Merge "Remove package if service stopped and disabled" into stable/pike
Diffstat (limited to 'docker/services/cinder-scheduler.yaml')
-rw-r--r-- | docker/services/cinder-scheduler.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/services/cinder-scheduler.yaml b/docker/services/cinder-scheduler.yaml index fa9d2418..1772f9e9 100644 --- a/docker/services/cinder-scheduler.yaml +++ b/docker/services/cinder-scheduler.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: @@ -122,3 +126,8 @@ outputs: - name: Stop and disable cinder_scheduler service tags: step2 service: name=openstack-cinder-scheduler state=stopped enabled=no + - name: Remove openstack-cinder package if operator requests it + yum: name=openstack-cinder state=removed + tags: step2 + ignore_errors: True + when: {get_param: UpgradeRemoveUnusedPackages} |