Commit ad1cb759 by Feanil Patel

Merge pull request #371 from edx/feanil/update_jenkins_mongo

Update the jenkins worker to use the mongo role.
parents dc8fe163 342033f3
...@@ -6,5 +6,10 @@ ...@@ -6,5 +6,10 @@
hosts: jenkins_worker hosts: jenkins_worker
sudo: True sudo: True
gather_facts: True gather_facts: True
vars:
COMMON_DATA_DIR: '/mnt'
COMMON_LOG_DIR: '/mnt/log'
roles: roles:
- common
- mongo
- jenkins_worker - jenkins_worker
...@@ -22,7 +22,6 @@ jenkins_debian_pkgs: ...@@ -22,7 +22,6 @@ jenkins_debian_pkgs:
- libgeos-dev - libgeos-dev
- libmysqlclient-dev - libmysqlclient-dev
- libxslt1-dev - libxslt1-dev
- mongodb
- npm - npm
- pkg-config - pkg-config
- python2.7 - python2.7
......
...@@ -5,12 +5,6 @@ ...@@ -5,12 +5,6 @@
- name: jenkins_worker | Stop mongo service - name: jenkins_worker | Stop mongo service
service: name=mongodb state=stopped service: name=mongodb state=stopped
- name: jenkins_worker | Configure Mongo
template: src=mongodb_conf.j2
dest=/etc/mongodb.conf
owner=root
group=root
- name: jenkins_worker | Configure Mongo upstart script - name: jenkins_worker | Configure Mongo upstart script
template: src=mongodb_upstart.j2 template: src=mongodb_upstart.j2
dest=/etc/init/mongodb.conf dest=/etc/init/mongodb.conf
......
# mongodb.conf
dbpath={{ mongo_dir }}
logpath={{ mongo_log_dir }}/mongodb.log
logappend=true
bind_ip = 127.0.0.1
port = 27017
journal=true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment