diff options
Diffstat (limited to 'docker/services/swift-proxy.yaml')
-rw-r--r-- | docker/services/swift-proxy.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/services/swift-proxy.yaml b/docker/services/swift-proxy.yaml index 86871210..3a27ab85 100644 --- a/docker/services/swift-proxy.yaml +++ b/docker/services/swift-proxy.yaml @@ -39,6 +39,10 @@ parameters: EnableInternalTLS: type: boolean default: false + UpgradeRemoveUnusedPackages: + default: false + description: Remove package if the service is being disabled during upgrade + type: boolean conditions: @@ -67,6 +71,8 @@ outputs: config_settings: {get_attr: [SwiftProxyBase, role_data, config_settings]} step_config: &step_config get_attr: [SwiftProxyBase, role_data, step_config] + logging_source: {get_attr: [SwiftProxyBase, role_data, logging_source]} + logging_groups: {get_attr: [SwiftProxyBase, role_data, logging_groups]} service_config_settings: {get_attr: [SwiftProxyBase, role_data, service_config_settings]} # BEGIN DOCKER SETTINGS puppet_config: @@ -145,5 +151,10 @@ outputs: - name: Stop and disable swift_proxy service tags: step2 service: name=openstack-swift-proxy state=stopped enabled=no + - name: Remove openstack-swift-proxy package if operator requests it + yum: name=openstack-swift-proxy state=removed + tags: step2 + ignore_errors: True + when: {get_param: UpgradeRemoveUnusedPackages} metadata_settings: get_attr: [SwiftProxyBase, role_data, metadata_settings] |