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
b19e373d
Unverified
Commit
b19e373d
authored
Dec 29, 2016
by
Gabe Mulley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up bare variables
parent
613cf13a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
42 deletions
+32
-42
docker/plays/analytics_pipeline.yml
+1
-1
docker/plays/insights.yml
+4
-14
playbooks/roles/analytics_pipeline/tasks/main.yml
+3
-3
playbooks/roles/hive/tasks/main.yml
+1
-7
playbooks/roles/insights/defaults/main.yml
+2
-0
playbooks/roles/insights/meta/main.yml
+1
-1
playbooks/roles/luigid/tasks/main.yml
+20
-16
No files found.
docker/plays/analytics_pipeline.yml
View file @
b19e373d
...
...
@@ -15,7 +15,7 @@
mode
:
"
0644"
owner
:
"
{{
analytics_pipeline_user
}}"
group
:
"
{{
analytics_pipeline_user
}}"
with_dict
:
ANALYTICS_PIPELINE_DATABASES
with_dict
:
"
{{
ANALYTICS_PIPELINE_DATABASES
}}"
tags
:
-
devstack:start
...
...
docker/plays/insights.yml
View file @
b19e373d
...
...
@@ -52,7 +52,10 @@
-
devstack:start
roles
:
-
insights
-
role
:
insights
INSIGHTS_CONFIG_OVERRIDES
:
DEBUG
:
"
true"
ENABLE_INSECURE_STATIC_FILES
:
"
true"
tasks
:
...
...
@@ -66,19 +69,6 @@
tags
:
-
devstack:start
-
name
:
set configuration vars
lineinfile
:
dest
:
"
{{
COMMON_CFG_DIR
}}/{{
insights_service_name
}}.yml"
regexp
:
'
^{{
item.key
}}:'
line
:
'
{{
item.key
}}:
{{
item.value
}}'
with_items
:
-
key
:
DEBUG
value
:
"
true"
-
key
:
ENABLE_INSECURE_STATIC_FILES
value
:
"
true"
tags
:
-
devstack:start
# Since the docker container mounts the user's working directory as a volume, it likely doesn't contain the
# "node_modules" directory that is needed to run bower
-
name
:
install node dependencies
...
...
playbooks/roles/analytics_pipeline/tasks/main.yml
View file @
b19e373d
...
...
@@ -68,7 +68,7 @@
args
:
chdir
:
"
{{
analytics_pipeline_code_dir
}}"
become_user
:
"
{{
analytics_pipeline_user
}}"
environment
:
analytics_pipeline_install_env
environment
:
"
{{
analytics_pipeline_install_env
}}"
tags
:
-
install
-
install:app-requirements
...
...
@@ -78,7 +78,7 @@
args
:
chdir
:
"
{{
analytics_pipeline_code_dir
}}"
become_user
:
"
{{
analytics_pipeline_user
}}"
environment
:
analytics_pipeline_install_env
environment
:
"
{{
analytics_pipeline_install_env
}}"
tags
:
-
install
-
install:app-requirements
...
...
@@ -88,7 +88,7 @@
args
:
chdir
:
"
{{
analytics_pipeline_code_dir
}}"
become_user
:
"
{{
analytics_pipeline_user
}}"
environment
:
analytics_pipeline_install_env
environment
:
"
{{
analytics_pipeline_install_env
}}"
tags
:
-
devstack
-
devstack:install
...
...
playbooks/roles/hive/tasks/main.yml
View file @
b19e373d
...
...
@@ -69,19 +69,13 @@
-
install
-
install:system-requirements
-
name
:
debug some stuff
debug
:
var=hive_site_config
tags
:
-
install
-
install:system-requirements
-
name
:
hive configured
hadoop_configuration
:
property
:
"
{{
item.key
}}"
value
:
"
{{
item.value
}}"
path
:
"
{{
HIVE_CONF
}}/hive-site.xml"
become_user
:
"
{{
hadoop_common_user
}}"
with_dict
:
hive_site_config
with_dict
:
"
{{
hive_site_config
}}"
tags
:
-
install
-
install:system-requirements
...
...
playbooks/roles/insights/defaults/main.yml
View file @
b19e373d
...
...
@@ -139,6 +139,8 @@ INSIGHTS_CONFIG:
CMS_COURSE_SHORTCUT_BASE_URL
:
"
{{
INSIGHTS_CMS_COURSE_SHORTCUT_BASE_URL
}}"
LEARNER_API_LIST_DOWNLOAD_FIELDS
:
"
{{
INSIGHTS_LEARNER_API_LIST_DOWNLOAD_FIELDS
}}"
INSIGHTS_CONFIG_OVERRIDES
:
{}
INSIGHTS_NEWRELIC_APPNAME
:
"
{{
COMMON_ENVIRONMENT
}}-{{
COMMON_DEPLOYMENT
}}-analytics-api"
INSIGHTS_PIP_EXTRA_ARGS
:
"
-i
{{
COMMON_PYPI_MIRROR_URL
}}"
INSIGHTS_NGINX_PORT
:
"
18110"
...
...
playbooks/roles/insights/meta/main.yml
View file @
b19e373d
...
...
@@ -15,7 +15,7 @@ dependencies:
-
supervisor
-
role
:
edx_service
edx_service_name
:
"
{{
insights_service_name
}}"
edx_service_config
:
"
{{
INSIGHTS_CONFIG
}}"
edx_service_config
:
"
{{
INSIGHTS_CONFIG
|combine(INSIGHTS_CONFIG_OVERRIDES)
}}"
edx_service_repos
:
"
{{
INSIGHTS_REPOS
}}"
edx_service_user
:
"
{{
insights_user
}}"
edx_service_home
:
"
{{
insights_home
}}"
...
...
playbooks/roles/luigid/tasks/main.yml
View file @
b19e373d
...
...
@@ -22,10 +22,10 @@
#
-
name
:
install application requirements
pip
:
>
name
=
"{{ item }}"
virtualenv
=
"{{ luigid_venv_dir }}"
state
=
present
pip
:
name
:
"
{{
item
}}"
virtualenv
:
"
{{
luigid_venv_dir
}}"
state
:
present
become_user
:
"
{{
luigid_user
}}"
with_items
:
"
{{
luigid_python_requirements
}}"
tags
:
...
...
@@ -33,10 +33,10 @@
-
install:app-requirements
-
name
:
install luigi
pip
:
>
name
=
"{{ luigid_code_dir }}"
virtualenv
=
"{{ luigid_venv_dir }}"
state
=
present
pip
:
name
:
"
{{
luigid_code_dir
}}"
virtualenv
:
"
{{
luigid_venv_dir
}}"
state
:
present
become_user
:
"
{{
luigid_user
}}"
tags
:
-
install
...
...
@@ -54,10 +54,12 @@
-
install:base
-
name
:
configuration installed
template
:
>
src={{ item }}.j2
dest={{ luigid_conf_dir }}/{{ item }}
mode=0640 owner={{ luigid_user }} group={{ luigid_user }}
template
:
src
:
"
{{
item
}}.j2"
dest
:
"
{{
luigid_conf_dir
}}/{{
item
}}"
mode
:
"
0640"
owner
:
"
{{
luigid_user
}}"
group
:
"
{{
luigid_user
}}"
with_items
:
-
logging.conf
-
client.cfg
...
...
@@ -65,10 +67,12 @@
-
install
-
name
:
upstart scripts installed
template
:
>
src={{ item }}.j2
dest=/etc/init/{{ item }}
mode=0640 owner=root group=root
template
:
src
:
"
{{
item
}}.j2"
dest
:
"
/etc/init/{{
item
}}"
mode
:
"
0640"
owner
:
root
group
:
root
with_items
:
-
luigid.conf
tags
:
...
...
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