Commit bfffaabf by Edward Zarecor

Adding tags

parent dafcdc3a
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
user: > user: >
name="{{ edxapp_user }}" home="{{ edxapp_app_dir }}" name="{{ edxapp_user }}" home="{{ edxapp_app_dir }}"
createhome=no shell=/bin/false createhome=no shell=/bin/false
tags:
- install
- install:base
- name: create edxapp user dirs - name: create edxapp user dirs
file: > file: >
...@@ -20,12 +23,18 @@ ...@@ -20,12 +23,18 @@
- "{{ edxapp_staticfile_dir }}" - "{{ edxapp_staticfile_dir }}"
- "{{ edxapp_course_static_dir }}" - "{{ edxapp_course_static_dir }}"
- "{{ edxapp_course_data_dir }}" - "{{ edxapp_course_data_dir }}"
tags:
- install
- install:base
# var should have more permissive permissions than the rest # var should have more permissive permissions than the rest
- name: create edxapp var dir - name: create edxapp var dir
file: > file: >
path={{ edxapp_data_dir }} state=directory mode=0775 path={{ edxapp_data_dir }} state=directory mode=0775
owner="{{ edxapp_user }}" group="{{ common_web_group }}" owner="{{ edxapp_user }}" group="{{ common_web_group }}"
tags:
- install
- install:base
# directory to import the courses from github # directory to import the courses from github
- name: create directory to import the courses from github - name: create directory to import the courses from github
...@@ -43,12 +52,18 @@ ...@@ -43,12 +52,18 @@
state=link state=link
owner="{{ edxapp_user }}" owner="{{ edxapp_user }}"
group="{{ common_web_group }}" group="{{ common_web_group }}"
tags:
- install
- install:base
- name: create edxapp log dir - name: create edxapp log dir
file: > file: >
path="{{ edxapp_log_dir }}" state=directory path="{{ edxapp_log_dir }}" state=directory
owner="{{ common_log_user }}" group="{{ common_log_user }}" owner="{{ common_log_user }}" group="{{ common_log_user }}"
tags:
- install
- install:base
- name: create web-writable edxapp data dirs - name: create web-writable edxapp data dirs
file: > file: >
path="{{ item }}" state=directory path="{{ item }}" state=directory
...@@ -58,27 +73,42 @@ ...@@ -58,27 +73,42 @@
- "{{ edxapp_course_data_dir }}" - "{{ edxapp_course_data_dir }}"
- "{{ edxapp_upload_dir }}" - "{{ edxapp_upload_dir }}"
- "{{ edxapp_media_dir }}" - "{{ edxapp_media_dir }}"
tags:
- install
- install:base
# adding chris-lea nodejs repo # adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs - name: add ppas for current versions of nodejs
apt_repository: repo="{{ edxapp_chrislea_ppa }}" apt_repository: repo="{{ edxapp_chrislea_ppa }}"
tags:
- install
- install:base
- name: install system packages on which LMS and CMS rely - name: install system packages on which LMS and CMS rely
apt: pkg={{','.join(edxapp_debian_pkgs)}} state=present update_cache=yes apt: pkg={{','.join(edxapp_debian_pkgs)}} state=present update_cache=yes
tags:
- install
- install:base
- name: set up edxapp .npmrc - name: set up edxapp .npmrc
template: template:
src=.npmrc.j2 dest={{ edxapp_app_dir }}/.npmrc src=.npmrc.j2 dest={{ edxapp_app_dir }}/.npmrc
owner={{ edxapp_user }} group={{ common_web_group }} owner={{ edxapp_user }} group={{ common_web_group }}
mode=0600 mode=0600
tags:
- install
- install:base
- name: create log directories for service variants - name: create log directories for service variants
file: > file: >
path={{ edxapp_log_dir }}/{{ item }} state=directory path={{ edxapp_log_dir }}/{{ item }} state=directory
owner={{ common_log_user }} group={{ common_log_user }} owner={{ common_log_user }} group={{ common_log_user }}
mode=0750 mode=0750
with_items: service_variants_enabled with_items: service_variants_enabled
tags:
- install
- install:base
# Set up the python sandbox execution environment # Set up the python sandbox execution environment
- include: python_sandbox_env.yml tags=deploy - include: python_sandbox_env.yml tags=deploy
when: EDXAPP_PYTHON_SANDBOX when: EDXAPP_PYTHON_SANDBOX
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
tags: edxapp_cfg tags: edxapp_cfg
with_items: service_variants_enabled with_items: service_variants_enabled
tags:
- install
- install:configration
- name: "create {{ item }} auth file" - name: "create {{ item }} auth file"
template: > template: >
...@@ -13,6 +16,9 @@ ...@@ -13,6 +16,9 @@
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
tags: edxapp_cfg tags: edxapp_cfg
with_items: service_variants_enabled with_items: service_variants_enabled
tags:
- install
- install:configration
- name: "create {{ item }} yaml application config" - name: "create {{ item }} yaml application config"
template: > template: >
...@@ -21,6 +27,9 @@ ...@@ -21,6 +27,9 @@
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
tags: edxapp_cfg tags: edxapp_cfg
with_items: service_variants_enabled with_items: service_variants_enabled
tags:
- install
- install:configuration
- name: "create {{ item }} yaml auth file" - name: "create {{ item }} yaml auth file"
template: > template: >
...@@ -29,7 +38,9 @@ ...@@ -29,7 +38,9 @@
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
tags: edxapp_cfg tags: edxapp_cfg
with_items: service_variants_enabled with_items: service_variants_enabled
tags:
- install
- install:configuration
# write the supervisor scripts for the service variants # write the supervisor scripts for the service variants
...@@ -40,6 +51,9 @@ ...@@ -40,6 +51,9 @@
group={{ supervisor_user }} group={{ supervisor_user }}
with_items: service_variants_enabled with_items: service_variants_enabled
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags:
- install
- install:configuration
- name: writing edxapp supervisor script - name: writing edxapp supervisor script
template: > template: >
...@@ -47,12 +61,18 @@ ...@@ -47,12 +61,18 @@
owner={{ supervisor_user }} owner={{ supervisor_user }}
group={{ supervisor_user }} group={{ supervisor_user }}
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags:
- install
- install:configuration
- name: "add gunicorn configuration files" - name: "add gunicorn configuration files"
template: > template: >
src={{ item }}_gunicorn.py.j2 dest={{ edxapp_app_dir }}/{{ item }}_gunicorn.py src={{ item }}_gunicorn.py.j2 dest={{ edxapp_app_dir }}/{{ item }}_gunicorn.py
with_items: service_variants_enabled with_items: service_variants_enabled
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
tags:
- install
- install:configuration
# write the supervisor script for celery workers # write the supervisor script for celery workers
...@@ -62,6 +82,9 @@ ...@@ -62,6 +82,9 @@
owner={{ supervisor_user }} owner={{ supervisor_user }}
group={{ supervisor_user }} group={{ supervisor_user }}
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags:
- install
- install:configuration
# Enable the supervisor jobs # Enable the supervisor jobs
- name: "enable {{ item }} supervisor script" - name: "enable {{ item }} supervisor script"
...@@ -73,6 +96,9 @@ ...@@ -73,6 +96,9 @@
with_items: service_variants_enabled with_items: service_variants_enabled
when: celery_worker is not defined and not disable_edx_services when: celery_worker is not defined and not disable_edx_services
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags:
- install
- install:config
- name: "enable edxapp supervisor script" - name: "enable edxapp supervisor script"
file: > file: >
...@@ -82,6 +108,9 @@ ...@@ -82,6 +108,9 @@
force=yes force=yes
when: celery_worker is not defined and not disable_edx_services when: celery_worker is not defined and not disable_edx_services
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags:
- install
- install:config
- name: "enable celery worker supervisor script" - name: "enable celery worker supervisor script"
file: > file: >
...@@ -91,6 +120,9 @@ ...@@ -91,6 +120,9 @@
force=yes force=yes
when: celery_worker is defined and not disable_edx_services when: celery_worker is defined and not disable_edx_services
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
tags:
- install
- install:config
- name: create helper scripts for managing edxapp - name: create helper scripts for managing edxapp
template: > template: >
...@@ -101,6 +133,9 @@ ...@@ -101,6 +133,9 @@
with_nested: with_nested:
- edxapp_helper_scripts - edxapp_helper_scripts
- service_variants_enabled - service_variants_enabled
tags:
- install
- install:config
# Syncdb with migrate when the migrate user is overridden in extra vars # Syncdb with migrate when the migrate user is overridden in extra vars
- name: syncdb and migrate - name: syncdb and migrate
...@@ -111,6 +146,8 @@ ...@@ -111,6 +146,8 @@
DB_MIGRATION_PASS: "{{ COMMON_MYSQL_MIGRATE_PASS }}" DB_MIGRATION_PASS: "{{ COMMON_MYSQL_MIGRATE_PASS }}"
EDX_PLATFORM_SETTINGS_OVERRIDE: "aws_migrate" EDX_PLATFORM_SETTINGS_OVERRIDE: "aws_migrate"
with_items: service_variants_enabled with_items: service_variants_enabled
tags:
- migrate
# Gather assets using paver if possible # Gather assets using paver if possible
...@@ -119,3 +156,5 @@ ...@@ -119,3 +156,5 @@
when: celery_worker is not defined and not devstack and item != "lms-preview" when: celery_worker is not defined and not devstack and item != "lms-preview"
tags: gather_static_assets tags: gather_static_assets
with_items: service_variants_enabled with_items: service_variants_enabled
tags:
- assets
--- ---
dependencies: dependencies:
- common
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