Commit a4d8458f by John Jarvis

removing mongo relocation in edxlocal (soon to be deprecated)

parent 621891e3
......@@ -10,13 +10,13 @@
# http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.62.tar.gz
#
---
- name: edxlocal| install packages needed for single server
- name: edxlocal| install packages needed for single server
apt: pkg={{','.join(edxlocal_debian_pkgs)}} install_recommends=yes state=present
- name: edxlocal | install python pymongo for mongo_user ansible module
pip: >
name=pymongo
state=present
name=pymongo
state=present
version=2.6.3
extra_args="-i {{ PYPI_MIRROR_URL }}"
......@@ -41,7 +41,7 @@
- name: edxlocal | add the mongodb signing key
apt_key: >
id=7F0CEB10
url=http://docs.mongodb.org/10gen-gpg-key.asc
url=http://docs.mongodb.org/10gen-gpg-key.asc
state=present
- name: edxlocal | add the mongodb repo to the sources list
......@@ -51,25 +51,13 @@
- name: edxlocal | install mongo server and recommends
apt: >
pkg=mongodb-10gen
state=present
pkg=mongodb-10gen
state=present
install_recommends=yes
update_cache=yes
- name: edxlocal | stop mongo service
service: name=mongodb state=stopped
- name: edxlocal | move mongodb to {{ data_dir }}
command: mv /var/lib/mongodb {{ data_dir }}/. creates={{ data_dir }}/mongodb
- name: edxlocal | create mongodb symlink
file: src={{ data_dir }}/mongodb dest=/var/lib/mongodb state=link
- name: edxlocal | start mongo service
service: name=mongodb state=started
- name: edxlocal | wait for mongo server to start
wait_for: port=27017 delay=2
wait_for: port=27017
- name: edxlocal | create a mongodb user for edxapp
mongodb_user: >
......
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