Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
66a019af
Commit
66a019af
authored
Aug 01, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding prefix to task names for edxlocal
parent
0f36b98c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
playbooks/roles/edxlocal/tasks/main.yml
+15
-15
No files found.
playbooks/roles/edxlocal/tasks/main.yml
View file @
66a019af
...
@@ -11,64 +11,64 @@
...
@@ -11,64 +11,64 @@
# http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.62.tar.gz
# http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.62.tar.gz
#
#
---
---
-
name
:
install python-pymongo (req for ansible)
-
name
:
edxlocal |
install python-pymongo (req for ansible)
pip
:
name=pymongo
pip
:
name=pymongo
-
name
:
install python-mysqldb (req for ansible)
-
name
:
edxlocal |
install python-mysqldb (req for ansible)
apt
:
pkg=python-mysqldb state=present
apt
:
pkg=python-mysqldb state=present
-
name
:
install mysql server and recommends
-
name
:
edxlocal |
install mysql server and recommends
apt
:
pkg=mysql-server-5.5 state=present install_recommends=yes
apt
:
pkg=mysql-server-5.5 state=present install_recommends=yes
-
name
:
create a database for edxapp
-
name
:
edxlocal |
create a database for edxapp
mysql_db
:
>
mysql_db
:
>
db=edxapp
db=edxapp
state=present
state=present
encoding=utf8
encoding=utf8
-
name
:
create a database for xqueue
-
name
:
edxlocal |
create a database for xqueue
mysql_db
:
>
mysql_db
:
>
db=xqueue
db=xqueue
state=present
state=present
encoding=utf8
encoding=utf8
-
name
:
create a database for ora
-
name
:
edxlocal |
create a database for ora
mysql_db
:
>
mysql_db
:
>
db=ora
db=ora
state=present
state=present
encoding=utf8
encoding=utf8
-
name
:
install mongo server and recommends
-
name
:
edxlocal |
install mongo server and recommends
apt
:
pkg=mongodb-server state=present install_recommends=yes
apt
:
pkg=mongodb-server state=present install_recommends=yes
-
name
:
stop mongo service
-
name
:
edxlocal |
stop mongo service
service
:
name=mongodb state=stopped
service
:
name=mongodb state=stopped
-
name
:
move mongodb to /mnt
-
name
:
edxlocal |
move mongodb to /mnt
command
:
mv /var/lib/mongodb /mnt/. creates=/mnt/mongodb
command
:
mv /var/lib/mongodb /mnt/. creates=/mnt/mongodb
-
name
:
create mongodb symlink
-
name
:
edxlocal |
create mongodb symlink
file
:
src=/mnt/mongodb dest=/var/lib/mongodb state=link
file
:
src=/mnt/mongodb dest=/var/lib/mongodb state=link
-
name
:
start mongo service
-
name
:
edxlocal |
start mongo service
service
:
name=mongodb state=started
service
:
name=mongodb state=started
-
name
:
wait for mongo server to start
-
name
:
edxlocal |
wait for mongo server to start
wait_for
:
port=27017 delay=2
wait_for
:
port=27017 delay=2
-
name
:
create a mongodb user for edxapp
-
name
:
edxlocal |
create a mongodb user for edxapp
mongodb_user
:
>
mongodb_user
:
>
database=edxapp
database=edxapp
name=edxapp
name=edxapp
password=password
password=password
state=present
state=present
-
name
:
create a mongodb user for forums
-
name
:
edxlocal |
create a mongodb user for forums
mongodb_user
:
>
mongodb_user
:
>
database=cs_comments_service
database=cs_comments_service
name=cs_comments_service
name=cs_comments_service
password=password
password=password
state=present
state=present
-
name
:
install memcached
-
name
:
edxlocal |
install memcached
apt
:
pkg=memcached state=present
apt
:
pkg=memcached state=present
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment