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
6eb3a9f9
Commit
6eb3a9f9
authored
May 04, 2016
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Source nodeenv before running npm
the extra e is for extra
parent
eadf4f30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
playbooks/roles/ecommerce/defaults/main.yml
+1
-1
playbooks/roles/ecommerce/tasks/main.yml
+1
-0
playbooks/roles/insights/defaults/main.yml
+3
-0
playbooks/roles/insights/tasks/main.yml
+7
-6
No files found.
playbooks/roles/ecommerce/defaults/main.yml
View file @
6eb3a9f9
...
...
@@ -205,7 +205,7 @@ ecommerce_requirements:
ecommerce_environment
:
DJANGO_SETTINGS_MODULE
:
"
{{
ECOMMERCE_DJANGO_SETTINGS_MODULE
}}"
ECOMMERCE_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
ecommerce_service_name
}}.yml"
PATH
:
"
{{
ecommerce_venv_dir
}}/bin:{{
ansible_env.PATH
}}"
PATH
:
"
{{
ecommerce_
nodeenv_bin
}}:{{
ecommerce_
venv_dir
}}/bin:{{
ansible_env.PATH
}}"
#
# OS packages
...
...
playbooks/roles/ecommerce/tasks/main.yml
View file @
6eb3a9f9
...
...
@@ -44,6 +44,7 @@
-
name
:
install node dependencies
npm
:
executable={{ ecommerce_nodeenv_bin }}/npm path={{ ecommerce_code_dir }} production=yes
sudo_user
:
"
{{
ecommerce_user
}}"
environment
:
"
{{
ecommerce_environment
}}"
-
name
:
install bower dependencies
shell
:
>
...
...
playbooks/roles/insights/defaults/main.yml
View file @
6eb3a9f9
...
...
@@ -150,8 +150,11 @@ INSIGHTS_REPOS:
insights_environment
:
DJANGO_SETTINGS_MODULE
:
"
analytics_dashboard.settings.production"
ANALYTICS_DASHBOARD_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
insights_service_name
}}.yml"
PATH
:
"
{{
insights_nodeenv_bin
}}:{{
insights_venv_dir
}}/bin:{{
ansible_env.PATH
}}"
insights_service_name
:
insights
insights_venv_dir
:
"
{{
insights_home
}}/venvs/{{
insights_service_name
}}"
insights_user
:
"
{{
insights_service_name
}}"
insights_app_dir
:
"
{{
COMMON_APP_DIR
}}/{{
insights_service_name
}}"
insights_home
:
"
{{
COMMON_APP_DIR
}}/{{
insights_service_name
}}"
...
...
playbooks/roles/insights/tasks/main.yml
View file @
6eb3a9f9
...
...
@@ -35,7 +35,7 @@
-
name
:
install application requirements
pip
:
>
requirements="{{ insights_requirements_base }}/{{ item }}"
virtualenv="{{ insights_
home }}/venvs/{{ insights_service_name
}}"
virtualenv="{{ insights_
venv_dir
}}"
state=present extra_args="--exists-action w"
sudo_user
:
"
{{
insights_user
}}"
with_items
:
insights_requirements
...
...
@@ -46,7 +46,7 @@
-
name
:
create nodeenv
shell
:
>
creates={{ insights_nodeenv_dir }}
{{ insights_
home }}/venvs/{{ insights_service_name
}}/bin/nodeenv {{ insights_nodeenv_dir }} --prebuilt
{{ insights_
venv_dir
}}/bin/nodeenv {{ insights_nodeenv_dir }} --prebuilt
sudo_user
:
"
{{
insights_user
}}"
tags
:
-
install
...
...
@@ -58,6 +58,7 @@
tags
:
-
install
-
install:app-requirements
environment
:
"
{{
insights_environment
}}"
-
name
:
install bower dependencies
shell
:
>
...
...
@@ -73,7 +74,7 @@
chdir={{ insights_code_dir }}
DB_MIGRATION_USER='{{ COMMON_MYSQL_MIGRATE_USER }}'
DB_MIGRATION_PASS='{{ COMMON_MYSQL_MIGRATE_PASS }}'
{{ insights_
home }}/venvs/{{ insights_service_name
}}/bin/python {{ insights_manage }} migrate --noinput
{{ insights_
venv_dir
}}/bin/python {{ insights_manage }} migrate --noinput
sudo_user
:
"
{{
insights_user
}}"
environment
:
"
{{
insights_environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
...
...
@@ -93,7 +94,7 @@
-
name
:
run collectstatic
shell
:
>
chdir={{ insights_code_dir }}
{{ insights_
home }}/venvs/{{ insights_service_name
}}/bin/python {{ insights_manage }} {{ item }}
{{ insights_
venv_dir
}}/bin/python {{ insights_manage }} {{ item }}
sudo_user
:
"
{{
insights_user
}}"
environment
:
"
{{
insights_environment
}}"
with_items
:
...
...
@@ -106,7 +107,7 @@
-
name
:
compile translations
shell
:
>
chdir={{ insights_code_dir }}/analytics_dashboard
. {{ insights_
home }}/venvs/{{ insights_service_name
}}/bin/activate && i18n_tool generate -v
. {{ insights_
venv_dir
}}/bin/activate && i18n_tool generate -v
sudo_user
:
"
{{
insights_user
}}"
tags
:
-
assets
...
...
@@ -150,7 +151,7 @@
-
name
:
create symlinks from the venv bin dir
file
:
>
src="{{ insights_
home }}/venvs/{{ insights_service_name
}}/bin/{{ item }}"
src="{{ insights_
venv_dir
}}/bin/{{ item }}"
dest="{{ COMMON_BIN_DIR }}/{{ item.split('.')[0] }}.{{ insights_service_name }}"
state=link
with_items
:
...
...
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