Migrate to the mongo-org package
This commit is contained in:
parent
804b562713
commit
804d89698b
|
@ -4,11 +4,11 @@ mongodb_enabled: yes
|
|||
mongodb_packages:
|
||||
- python-selinux
|
||||
- python-pymongo
|
||||
- mongodb-10gen
|
||||
- mongodb-org
|
||||
|
||||
# Configuration
|
||||
mongodb_dbpath: /var/lib/mongodb
|
||||
mongodb_logpath: /var/log/mongodb/mongodb.log
|
||||
mongodb_logpath: /var/log/mongodb/mongod.log
|
||||
mongodb_port: 27017
|
||||
mongodb_nojournal: true
|
||||
mongodb_cpu: true
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
|
||||
- name: mongodb reload
|
||||
service: name=mongodb state=reloaded
|
||||
service: name=mongod state=reloaded
|
||||
|
||||
- name: mongodb restart
|
||||
service: name=mongodb state=restarted
|
||||
service: name=mongod state=restarted
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Configure mongodb
|
||||
template: src=mongodb.conf.j2 dest=/etc/mongodb.conf owner=root group=root mode=0644
|
||||
template: src=mongod.conf.j2 dest=/etc/mongod.conf owner=root group=root mode=0644
|
||||
notify: mongodb reload
|
||||
|
||||
- name: Configure log rotation
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Ensure mongodb is started
|
||||
service: name=mongodb state=started
|
||||
service: name=mongod state=started
|
||||
|
||||
- include: configure.yml
|
||||
|
|
Loading…
Reference in New Issue