clean up bare variables

parent 613cf13a
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
mode: "0644" mode: "0644"
owner: "{{ analytics_pipeline_user }}" owner: "{{ analytics_pipeline_user }}"
group: "{{ analytics_pipeline_user }}" group: "{{ analytics_pipeline_user }}"
with_dict: ANALYTICS_PIPELINE_DATABASES with_dict: "{{ ANALYTICS_PIPELINE_DATABASES }}"
tags: tags:
- devstack:start - devstack:start
......
...@@ -52,7 +52,10 @@ ...@@ -52,7 +52,10 @@
- devstack:start - devstack:start
roles: roles:
- insights - role: insights
INSIGHTS_CONFIG_OVERRIDES:
DEBUG: "true"
ENABLE_INSECURE_STATIC_FILES: "true"
tasks: tasks:
...@@ -66,19 +69,6 @@ ...@@ -66,19 +69,6 @@
tags: tags:
- devstack:start - 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 # 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 # "node_modules" directory that is needed to run bower
- name: install node dependencies - name: install node dependencies
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
args: args:
chdir: "{{ analytics_pipeline_code_dir }}" chdir: "{{ analytics_pipeline_code_dir }}"
become_user: "{{ analytics_pipeline_user }}" become_user: "{{ analytics_pipeline_user }}"
environment: analytics_pipeline_install_env environment: "{{ analytics_pipeline_install_env }}"
tags: tags:
- install - install
- install:app-requirements - install:app-requirements
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
args: args:
chdir: "{{ analytics_pipeline_code_dir }}" chdir: "{{ analytics_pipeline_code_dir }}"
become_user: "{{ analytics_pipeline_user }}" become_user: "{{ analytics_pipeline_user }}"
environment: analytics_pipeline_install_env environment: "{{ analytics_pipeline_install_env }}"
tags: tags:
- install - install
- install:app-requirements - install:app-requirements
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
args: args:
chdir: "{{ analytics_pipeline_code_dir }}" chdir: "{{ analytics_pipeline_code_dir }}"
become_user: "{{ analytics_pipeline_user }}" become_user: "{{ analytics_pipeline_user }}"
environment: analytics_pipeline_install_env environment: "{{ analytics_pipeline_install_env }}"
tags: tags:
- devstack - devstack
- devstack:install - devstack:install
......
...@@ -69,19 +69,13 @@ ...@@ -69,19 +69,13 @@
- install - install
- install:system-requirements - install:system-requirements
- name: debug some stuff
debug: var=hive_site_config
tags:
- install
- install:system-requirements
- name: hive configured - name: hive configured
hadoop_configuration: hadoop_configuration:
property: "{{ item.key }}" property: "{{ item.key }}"
value: "{{ item.value }}" value: "{{ item.value }}"
path: "{{ HIVE_CONF }}/hive-site.xml" path: "{{ HIVE_CONF }}/hive-site.xml"
become_user: "{{ hadoop_common_user }}" become_user: "{{ hadoop_common_user }}"
with_dict: hive_site_config with_dict: "{{ hive_site_config }}"
tags: tags:
- install - install
- install:system-requirements - install:system-requirements
......
...@@ -139,6 +139,8 @@ INSIGHTS_CONFIG: ...@@ -139,6 +139,8 @@ INSIGHTS_CONFIG:
CMS_COURSE_SHORTCUT_BASE_URL: "{{ INSIGHTS_CMS_COURSE_SHORTCUT_BASE_URL }}" CMS_COURSE_SHORTCUT_BASE_URL: "{{ INSIGHTS_CMS_COURSE_SHORTCUT_BASE_URL }}"
LEARNER_API_LIST_DOWNLOAD_FIELDS: "{{ INSIGHTS_LEARNER_API_LIST_DOWNLOAD_FIELDS }}" LEARNER_API_LIST_DOWNLOAD_FIELDS: "{{ INSIGHTS_LEARNER_API_LIST_DOWNLOAD_FIELDS }}"
INSIGHTS_CONFIG_OVERRIDES: {}
INSIGHTS_NEWRELIC_APPNAME: "{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-analytics-api" INSIGHTS_NEWRELIC_APPNAME: "{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-analytics-api"
INSIGHTS_PIP_EXTRA_ARGS: "-i {{ COMMON_PYPI_MIRROR_URL }}" INSIGHTS_PIP_EXTRA_ARGS: "-i {{ COMMON_PYPI_MIRROR_URL }}"
INSIGHTS_NGINX_PORT: "18110" INSIGHTS_NGINX_PORT: "18110"
......
...@@ -15,7 +15,7 @@ dependencies: ...@@ -15,7 +15,7 @@ dependencies:
- supervisor - supervisor
- role: edx_service - role: edx_service
edx_service_name: "{{ insights_service_name }}" 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_repos: "{{ INSIGHTS_REPOS }}"
edx_service_user: "{{ insights_user }}" edx_service_user: "{{ insights_user }}"
edx_service_home: "{{ insights_home }}" edx_service_home: "{{ insights_home }}"
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
# #
- name: install application requirements - name: install application requirements
pip: > pip:
name="{{ item }}" name: "{{ item }}"
virtualenv="{{ luigid_venv_dir }}" virtualenv: "{{ luigid_venv_dir }}"
state=present state: present
become_user: "{{ luigid_user }}" become_user: "{{ luigid_user }}"
with_items: "{{ luigid_python_requirements }}" with_items: "{{ luigid_python_requirements }}"
tags: tags:
...@@ -33,10 +33,10 @@ ...@@ -33,10 +33,10 @@
- install:app-requirements - install:app-requirements
- name: install luigi - name: install luigi
pip: > pip:
name="{{ luigid_code_dir }}" name: "{{ luigid_code_dir }}"
virtualenv="{{ luigid_venv_dir }}" virtualenv: "{{ luigid_venv_dir }}"
state=present state: present
become_user: "{{ luigid_user }}" become_user: "{{ luigid_user }}"
tags: tags:
- install - install
...@@ -54,10 +54,12 @@ ...@@ -54,10 +54,12 @@
- install:base - install:base
- name: configuration installed - name: configuration installed
template: > template:
src={{ item }}.j2 src: "{{ item }}.j2"
dest={{ luigid_conf_dir }}/{{ item }} dest: "{{ luigid_conf_dir }}/{{ item }}"
mode=0640 owner={{ luigid_user }} group={{ luigid_user }} mode: "0640"
owner: "{{ luigid_user }}"
group: "{{ luigid_user }}"
with_items: with_items:
- logging.conf - logging.conf
- client.cfg - client.cfg
...@@ -65,10 +67,12 @@ ...@@ -65,10 +67,12 @@
- install - install
- name: upstart scripts installed - name: upstart scripts installed
template: > template:
src={{ item }}.j2 src: "{{ item }}.j2"
dest=/etc/init/{{ item }} dest: "/etc/init/{{ item }}"
mode=0640 owner=root group=root mode: "0640"
owner: root
group: root
with_items: with_items:
- luigid.conf - luigid.conf
tags: tags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment