aboutsummaryrefslogtreecommitdiffstats
path: root/docker/services/sahara-api.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'docker/services/sahara-api.yaml')
-rw-r--r--docker/services/sahara-api.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/services/sahara-api.yaml b/docker/services/sahara-api.yaml
index b0c3736c..cf7eae85 100644
--- a/docker/services/sahara-api.yaml
+++ b/docker/services/sahara-api.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:
@@ -62,6 +66,8 @@ outputs:
map_merge:
- get_attr: [SaharaApiPuppetBase, role_data, config_settings]
- sahara::sync_db: false
+ logging_source: {get_attr: [SaharaApiPuppetBase, role_data, logging_source]}
+ logging_groups: {get_attr: [SaharaApiPuppetBase, role_data, logging_groups]}
step_config: &step_config
list_join:
- "\n"
@@ -136,3 +142,8 @@ outputs:
- name: Stop and disable sahara_api service
tags: step2
service: name=openstack-sahara-api state=stopped enabled=no
+ - name: Remove openstack-sahara-api package if operator requests it
+ yum: name=openstack-sahara-api state=removed
+ tags: step2
+ ignore_errors: True
+ when: {get_param: UpgradeRemoveUnusedPackages}