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
97b96b6f
Commit
97b96b6f
authored
Dec 04, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to using the command module instead of the shell module
parent
5d8c2745
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
17 deletions
+22
-17
playbooks/roles/course_discovery/defaults/main.yml
+7
-0
playbooks/roles/course_discovery/tasks/main.yml
+15
-17
No files found.
playbooks/roles/course_discovery/defaults/main.yml
View file @
97b96b6f
...
...
@@ -115,6 +115,13 @@ course_discovery_environment:
COURSE_DISCOVERY_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
course_discovery_service_name
}}.yml"
PATH
:
"
{{
course_discovery_venv_dir
}}/bin:{{
ansible_env.PATH
}}"
course_discovery_migration_environment
:
DJANGO_SETTINGS_MODULE
:
"
{{
COURSE_DISCOVERY_DJANGO_SETTINGS_MODULE
}}"
COURSE_DISCOVERY_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
course_discovery_service_name
}}.yml"
PATH
:
"
{{
course_discovery_venv_dir
}}/bin:{{
ansible_env.PATH
}}"
DB_MIGRATION_USER
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
DB_MIGRATION_PASS
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
course_discovery_service_name
:
"
course_discovery"
course_discovery_user
:
"
{{
course_discovery_service_name
}}"
course_discovery_home
:
"
{{
COMMON_APP_DIR
}}/{{
course_discovery_service_name
}}"
...
...
playbooks/roles/course_discovery/tasks/main.yml
View file @
97b96b6f
...
...
@@ -47,7 +47,7 @@
-
install:system-requirements
-
name
:
build virtualenv
shell
:
"
virtualenv
--python=python3.5
{{
course_discovery_venv_dir
}}"
command
:
"
virtualenv
--python=python3.5
{{
course_discovery_venv_dir
}}"
args
:
creates
:
"
{{
course_discovery_venv_dir
}}/bin/pip"
sudo_user
:
"
{{
course_discovery_user
}}"
...
...
@@ -56,21 +56,21 @@
-
install:system-requirements
-
name
:
install application requirements
shell
:
>
chdir=/edx/app/course_discovery/course_discovery
. {{ course_discovery_venv_dir }}/bin/activate;
make requirements
command
:
make requirements
args
:
chdir
:
"
{{
course_discovery_code_dir
}}"
sudo_user
:
"
{{
course_discovery_user
}}"
environment
:
"
{{
course_discovery_environment
}}"
tags
:
-
install
-
install:app-requirements
-
name
:
install development requirements
shell
:
>
chdir=/edx/app/course_discovery/course_discovery
. {{ course_discovery_venv_dir }}/bin/activate;
make local-requirements
command
:
make local-requirements
args
:
chdir
:
"
{{
course_discovery_code_dir
}}"
sudo_user
:
"
{{
course_discovery_user
}}"
environment
:
"
{{
course_discovery_environment
}}"
tags
:
-
install
-
install:devstack
...
...
@@ -112,14 +112,12 @@
tags
:
-
migrate:devstack
-
name
:
migrate
shell
:
>
chdir={{ course_discovery_code_dir }}
DB_MIGRATION_USER={{ COMMON_MYSQL_MIGRATE_USER }}
DB_MIGRATION_PASS={{ COMMON_MYSQL_MIGRATE_PASS }}
{{ course_discovery_venv_dir }}/bin/python ./manage.py migrate --noinput
-
name
:
migrate database
command
:
make migrate
args
:
chdir
:
"
{{
course_discovery_code_dir
}}"
sudo_user
:
"
{{
course_discovery_user
}}"
environment
:
"
{{
course_discovery_environment
}}"
environment
:
"
{{
course_discovery_
migration_
environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
-
migrate
...
...
@@ -181,7 +179,7 @@
-
install:configuration
-
name
:
update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
command
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
when
:
not disable_edx_services
tags
:
-
manage
...
...
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