summaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-09-07 05:34:35 +0000
committerGerrit Code Review <review@openstack.org>2017-09-07 05:34:35 +0000
commita38bd9eee95eecb6665d1529c3a24b33af50ed5a (patch)
tree724a6c85433bafa24dcbdb31176da645e81e91c6 /puppet
parentefe83884e087dd29bf0fcfff3e6f58080da28aaa (diff)
parente33d9181e4b75a54968b0821375a2564ff8ceab9 (diff)
Merge "Containerized mongodb, disable by default, fix upgrade" into stable/pike
Diffstat (limited to 'puppet')
-rw-r--r--puppet/services/disabled/mongodb-disabled.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/puppet/services/disabled/mongodb-disabled.yaml b/puppet/services/disabled/mongodb-disabled.yaml
index 9e58103c..c01a91fb 100644
--- a/puppet/services/disabled/mongodb-disabled.yaml
+++ b/puppet/services/disabled/mongodb-disabled.yaml
@@ -37,6 +37,10 @@ outputs:
value:
service_name: mongodb_disabled
upgrade_tasks:
+ - name: Check for mongodb service
+ stat: path=/usr/lib/systemd/system/mongod.service
+ register: mongod_service
- name: Stop and disable mongodb service on upgrade
tags: step1
service: name=mongod state=stopped enabled=no
+ when: mongod_service.stat.exists