summaryrefslogtreecommitdiffstats
path: root/docker/services/barbican-api.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'docker/services/barbican-api.yaml')
-rw-r--r--docker/services/barbican-api.yaml13
1 files changed, 12 insertions, 1 deletions
diff --git a/docker/services/barbican-api.yaml b/docker/services/barbican-api.yaml
index b1bf7da8..af528f79 100644
--- a/docker/services/barbican-api.yaml
+++ b/docker/services/barbican-api.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:
@@ -71,6 +75,8 @@ outputs:
map_merge:
- get_attr: [BarbicanApiBase, role_data, config_settings]
- apache::default_vhost: false
+ logging_source: {get_attr: [BarbicanApiBase, role_data, logging_source]}
+ logging_groups: {get_attr: [BarbicanApiBase, role_data, logging_groups]}
step_config: &step_config
list_join:
- "\n"
@@ -150,5 +156,10 @@ outputs:
- name: Stop and disable barbican_api service
tags: step2
service: name=openstack-barbican-api state=stopped enabled=no
+ - name: Remove openstack-barbican-api package if operator requests it
+ yum: name=openstack-barbican-api state=removed
+ tags: step2
+ ignore_errors: True
+ when: {get_param: UpgradeRemoveUnusedPackages}
metadata_settings:
- get_attr: [BarbicanApiBase, role_data, metadata_settings] \ No newline at end of file
+ get_attr: [BarbicanApiBase, role_data, metadata_settings]