add a mongo-acct script template - to be populated with passwords, etc later
This commit is contained in:
parent
94834462a3
commit
7aa6365096
2 changed files with 23 additions and 2 deletions
|
@ -56,12 +56,26 @@
|
|||
action: copy src=$files/openshift/mongodb.conf dest=/etc/mongodb.conf backup=true
|
||||
tags:
|
||||
- mongo
|
||||
|
||||
- name: mongod service start
|
||||
action: service name=mongod state=running enabled=yes
|
||||
tags:
|
||||
- mongo
|
||||
- name: setup openshift mongo pw
|
||||
action: command mongo stickshift_broker_dev --eval \'db.addUser("stickshift", "mooo")\'
|
||||
|
||||
- name: mongo/openshift account setup script
|
||||
action: template src=$files/openshift/mongo-acct.sh dest=/root/mongo-acct.sh mode=0700
|
||||
tags:
|
||||
- mongo
|
||||
|
||||
- name: mongo/openshift account setup
|
||||
action: command /root/mongo-acct.sh
|
||||
creates: /etc/mongo-acct-setup
|
||||
tags:
|
||||
- mongo
|
||||
|
||||
- name: clear file mongo acct file
|
||||
action: file state=absent /root/mongo-acct.sh
|
||||
tags:
|
||||
- mongo
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue