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
OpenEdx
configuration
Commits
52e842ac
Commit
52e842ac
authored
May 13, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swap {{ for ${ on line starts
parent
bd4dc3ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
playbooks/roles/discern/tasks/main.yml
+10
-10
No files found.
playbooks/roles/discern/tasks/main.yml
View file @
52e842ac
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
file
:
path={{item}} owner={{remote_user}} group=edx mode=2775 state=directory
file
:
path={{item}} owner={{remote_user}} group=edx mode=2775 state=directory
sudo
:
True
sudo
:
True
with_items
:
with_items
:
-
{{
discern_dir
}
}
-
${discern_dir
}
-
{{
ease_dir
}
}
-
${ease_dir
}
#Grab both repos or update
#Grab both repos or update
-
name
:
git checkout discern repo into discern_dir
-
name
:
git checkout discern repo into discern_dir
...
@@ -54,21 +54,21 @@
...
@@ -54,21 +54,21 @@
command
:
xargs -a {{item}}/apt-packages.txt apt-get install -y
command
:
xargs -a {{item}}/apt-packages.txt apt-get install -y
sudo
:
yes
sudo
:
yes
with_items
:
with_items
:
-
{{
discern_dir
}
}
-
${discern_dir
}
-
{{
ease_dir
}
}
-
${ease_dir
}
#Numpy has to be a pre-requirement in order for scipy to build
#Numpy has to be a pre-requirement in order for scipy to build
-
name
:
install python pre-requirements for discern and ease
-
name
:
install python pre-requirements for discern and ease
pip
:
requirements="{{item}}/pre-requirements.txt" virtualenv="{{venv_dir}}" state=present
pip
:
requirements="{{item}}/pre-requirements.txt" virtualenv="{{venv_dir}}" state=present
with_items
:
with_items
:
-
{{
discern_dir
}
}
-
${discern_dir
}
-
{{
ease_dir
}
}
-
${ease_dir
}
-
name
:
install python requirements for discern and ease
-
name
:
install python requirements for discern and ease
pip
:
requirements="{{item}}/requirements.txt" virtualenv="{{venv_dir}}" state=present
pip
:
requirements="{{item}}/requirements.txt" virtualenv="{{venv_dir}}" state=present
with_items
:
with_items
:
-
{{
discern_dir
}
}
-
${discern_dir
}
-
{{
ease_dir
}
}
-
${ease_dir
}
-
name
:
install ease python package
-
name
:
install ease python package
shell
:
command="{{venv_dir}}/bin/activate; cd {{ease_dir}}; python setup.py install"
shell
:
command="{{venv_dir}}/bin/activate; cd {{ease_dir}}; python setup.py install"
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
#Run this instead of using the ansible module because the ansible module only support syncdb of these three, and does not
#Run this instead of using the ansible module because the ansible module only support syncdb of these three, and does not
#support virtualenvs as of this comment
#support virtualenvs as of this comment
-
name
:
django syncdb for discern
-
name
:
django syncdb for discern
shell
:
ls; {{venv_dir}
}/bin/python {{discern_dir}}/manage.py {{item}} --noinput --settings={{discern_settings}} --pythonpath={{discern_dir}}
shell
:
${venv_dir
}/bin/python {{discern_dir}}/manage.py {{item}} --noinput --settings={{discern_settings}} --pythonpath={{discern_dir}}
with_items
:
with_items
:
-
syncdb
-
syncdb
-
migrate
-
migrate
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
#Have this separate from the other three because it doesn't take the noinput flag
#Have this separate from the other three because it doesn't take the noinput flag
-
name
:
django update_index for discern
-
name
:
django update_index for discern
shell
:
ls; {{venv_dir}
}/bin/python {{discern_dir}}/manage.py update_index --settings={{discern_settings}} --pythonpath={{discern_dir}}
shell
:
${venv_dir
}/bin/python {{discern_dir}}/manage.py update_index --settings={{discern_settings}} --pythonpath={{discern_dir}}
#Create the templates for upstart services
#Create the templates for upstart services
-
name
:
render celery service from template
-
name
:
render celery service from template
...
...
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