summaryrefslogtreecommitdiffstats
path: root/docker/services/database
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 /docker/services/database
parentefe83884e087dd29bf0fcfff3e6f58080da28aaa (diff)
parente33d9181e4b75a54968b0821375a2564ff8ceab9 (diff)
Merge "Containerized mongodb, disable by default, fix upgrade" into stable/pike
Diffstat (limited to 'docker/services/database')
-rw-r--r--docker/services/database/mongodb.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/services/database/mongodb.yaml b/docker/services/database/mongodb.yaml
index 9b5c5b8f..d6bba20b 100644
--- a/docker/services/database/mongodb.yaml
+++ b/docker/services/database/mongodb.yaml
@@ -157,6 +157,10 @@ outputs:
metadata_settings:
get_attr: [MongodbPuppetBase, role_data, metadata_settings]
upgrade_tasks:
+ - name: Check for mongodb service
+ stat: path=/usr/lib/systemd/system/mongod.service
+ register: mongod_service
- name: Stop and disable mongodb service
tags: step2
service: name=mongod state=stopped enabled=no
+ when: mongod_service.stat.exists