aboutsummaryrefslogtreecommitdiffstats
path: root/docker/services/swift-storage.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-10-10 04:38:29 +0000
committerGerrit Code Review <review@openstack.org>2017-10-10 04:38:30 +0000
commitaf040d1e9418e6f266cfe8e2d1111ac80aaa7b94 (patch)
tree3fccbb469b23a6dc4e16de11ef3d1e0cf102deff /docker/services/swift-storage.yaml
parent43062a1eae30a7a0ade11ee2a1841def93fdc0c8 (diff)
parent6d150b03cff457bf43e8c2b55ba03ace20d6c244 (diff)
Merge "Remove package if service stopped and disabled" into stable/pike
Diffstat (limited to 'docker/services/swift-storage.yaml')
-rw-r--r--docker/services/swift-storage.yaml14
1 files changed, 13 insertions, 1 deletions
diff --git a/docker/services/swift-storage.yaml b/docker/services/swift-storage.yaml
index 108a0368..e0c1194a 100644
--- a/docker/services/swift-storage.yaml
+++ b/docker/services/swift-storage.yaml
@@ -50,7 +50,10 @@ parameters:
default: {}
description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
type: json
-
+ UpgradeRemoveUnusedPackages:
+ default: false
+ description: Remove package if the service is being disabled during upgrade
+ type: boolean
resources:
@@ -468,3 +471,12 @@ outputs:
- openstack-swift-object-replicator
- openstack-swift-object-updater
- openstack-swift-object
+ - name: Remove openstack-swift-container,object,account packages if operator requests it
+ yum: name={{ item }} state=removed
+ tags: step2
+ ignore_errors: True
+ when: {get_param: UpgradeRemoveUnusedPackages}
+ with_items:
+ - openstack-swift-container
+ - openstack-swift-object
+ - openstack-swift-account