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
753be18d
Commit
753be18d
authored
Jun 16, 2016
by
Arbab Nazar
Committed by
GitHub
Jun 16, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3125 from edx/arbab/ops-1593
parameters written as fully expanded YAML dictionaries
parents
759fd5f6
b9ab1682
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
73 additions
and
73 deletions
+73
-73
playbooks/roles/edxapp/tasks/deploy.yml
+21
-21
playbooks/roles/edxapp/tasks/service_variant_config.yml
+8
-8
playbooks/roles/elasticsearch-monitor/tasks/main.yml
+3
-3
playbooks/roles/flower/tasks/main.yml
+4
-4
playbooks/roles/forum/tasks/deploy.yml
+5
-5
playbooks/roles/git_clone/tasks/main.yml
+3
-3
playbooks/roles/gitreload/tasks/course_pull.yml
+2
-2
playbooks/roles/gitreload/tasks/deploy.yml
+5
-5
playbooks/roles/gitreload/tasks/main.yml
+3
-3
playbooks/roles/go-server/tasks/download_backup.yml
+1
-1
playbooks/roles/go-server/tasks/main.yml
+1
-1
playbooks/roles/go-server/tasks/restore_backup.yml
+1
-1
playbooks/roles/go-server/tasks/setup_regular_backup.yml
+1
-1
playbooks/roles/hadoop_master/tasks/main.yml
+1
-1
playbooks/roles/harprofiler/tasks/main.yml
+4
-4
playbooks/roles/harstorage/tasks/main.yml
+1
-1
playbooks/roles/insights/tasks/main.yml
+9
-9
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
753be18d
...
...
@@ -38,7 +38,7 @@
-
name
:
set git fetch.prune to ignore deleted remote refs
shell
:
git config --global fetch.prune
true
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
tags
:
-
install
-
install:base
...
...
@@ -50,7 +50,7 @@
repo
:
"
{{
edx_platform_repo
}}"
version
:
"
{{
edx_platform_version
}}"
accept_hostkey
:
yes
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
environment
:
GIT_SSH
:
"
{{
edxapp_git_ssh
}}"
register
:
edxapp_platform_checkout
...
...
@@ -60,7 +60,7 @@
-
name
:
git clean after checking out edx-platform
shell
:
cd {{ edxapp_code_dir }} && git clean -xdf
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
tags
:
-
install
-
install:code
...
...
@@ -78,7 +78,7 @@
version
:
"
{{
edxapp_theme_version
}}"
accept_hostkey
:
yes
when
:
edxapp_theme_name != ''
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
environment
:
GIT_SSH
:
"
{{
edxapp_git_ssh
}}"
register
:
edxapp_theme_checkout
...
...
@@ -97,7 +97,7 @@
version
:
"
{{
EDXAPP_COMPREHENSIVE_THEME_VERSION
}}"
accept_hostkey
:
yes
when
:
EDXAPP_COMPREHENSIVE_THEME_SOURCE_REPO != ''
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
environment
:
GIT_SSH
:
"
{{
edxapp_git_ssh
}}"
register
:
edxapp_comprehensive_theme_checkout
...
...
@@ -120,7 +120,7 @@
-
name
:
Updating requirement files for git mirror
command
:
|
/bin/sed -i -e 's/github\.com/{{ COMMON_GIT_MIRROR }}/g' {{ item.item }}
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
when
:
item.stat.exists
with_items
:
"
{{
requirement_file_stats.results
}}"
tags
:
...
...
@@ -153,7 +153,7 @@
# Node play that need to be run after platform updates.
-
name
:
Install edx-platform npm dependencies
shell
:
npm install chdir={{ edxapp_code_dir }}
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
tags
:
-
install
...
...
@@ -164,7 +164,7 @@
virtualenv {{ edxapp_venv_dir }}
chdir={{ edxapp_code_dir }}
creates={{ edxapp_venv_dir }}/bin/pip
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
tags
:
-
install
...
...
@@ -187,7 +187,7 @@
command
:
>
{{ edxapp_venv_dir }}/bin/pip install {{ COMMON_PIP_VERBOSITY }} -i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w -r {{ item.item }}
chdir={{ edxapp_code_dir }}
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
item.stat.exists
with_items
:
"
{{
python_requirement_files.results
}}"
...
...
@@ -206,7 +206,7 @@
chdir={{ edxapp_code_dir }}
with_items
:
-
"
{{
private_requirements_file
}}"
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
environment
:
GIT_SSH
:
"
{{
edxapp_git_ssh
}}"
when
:
EDXAPP_INSTALL_PRIVATE_REQUIREMENTS
...
...
@@ -223,7 +223,7 @@
virtualenv
:
"
{{
edxapp_venv_dir
}}"
state
:
present
with_items
:
EDXAPP_EXTRA_REQUIREMENTS
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
tags
:
-
install
-
install:app-requirements
...
...
@@ -236,7 +236,7 @@
virtualenv
:
"
{{
edxapp_venv_dir
}}"
state
:
present
extra_args
:
"
-i
{{
COMMON_PYPI_MIRROR_URL
}}
--exists-action
w"
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
when
:
EDXAPP_CAS_ATTRIBUTE_PACKAGE|length > 0
tags
:
-
install
...
...
@@ -254,7 +254,7 @@
-
"
{{
sandbox_base_requirements
}}"
-
"
{{
sandbox_local_requirements
}}"
-
"
{{
sandbox_post_requirements
}}"
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
when
:
not EDXAPP_PYTHON_SANDBOX
tags
:
-
install
...
...
@@ -278,7 +278,7 @@
virtualenv
:
"
{{
edxapp_sandbox_venv_dir
}}"
state
:
present
extra_args
:
"
-i
{{
COMMON_PYPI_MIRROR_URL
}}
--exists-action
w"
sudo
_user
:
"
{{
edxapp_sandbox_user
}}"
become
_user
:
"
{{
edxapp_sandbox_user
}}"
when
:
EDXAPP_PYTHON_SANDBOX
tags
:
-
edxapp-sandbox
...
...
@@ -292,7 +292,7 @@
with_items
:
-
"
{{
sandbox_local_requirements
}}"
-
"
{{
sandbox_post_requirements
}}"
sudo
_user
:
"
{{
edxapp_sandbox_user
}}"
become
_user
:
"
{{
edxapp_sandbox_user
}}"
when
:
EDXAPP_PYTHON_SANDBOX
register
:
sandbox_install_output
changed_when
:
sandbox_install_output.stdout is defined and 'installed' in sandbox_install_output.stdout
...
...
@@ -311,7 +311,7 @@
-
name
:
compiling all py files in the edx-platform repo
shell
:
"
{{
edxapp_venv_bin
}}/python
-m
compileall
-q
-x
.git/.*
{{
edxapp_code_dir
}}"
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
tags
:
-
install
-
install:code
...
...
@@ -345,7 +345,7 @@
-
name
:
update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
sudo
_user
:
"
{{
supervisor_service_user
}}"
become
_user
:
"
{{
supervisor_service_user
}}"
changed_when
:
supervisor_update.stdout is defined and supervisor_update.stdout != ""
when
:
not disable_edx_services
tags
:
...
...
@@ -357,7 +357,7 @@
supervisorctl_path
:
"
{{
supervisor_ctl
}}"
config
:
"
{{
supervisor_cfg
}}"
state
:
started
sudo
_user
:
"
{{
supervisor_service_user
}}"
become
_user
:
"
{{
supervisor_service_user
}}"
when
:
celery_worker is not defined and not disable_edx_services
tags
:
-
manage
...
...
@@ -369,7 +369,7 @@
config
:
"
{{
supervisor_cfg
}}"
state
:
started
when
:
celery_worker is defined and not disable_edx_services
sudo
_user
:
"
{{
supervisor_service_user
}}"
become
_user
:
"
{{
supervisor_service_user
}}"
tags
:
-
manage
...
...
@@ -413,7 +413,7 @@
config
:
"
{{
supervisor_cfg
}}"
state
:
restarted
when
:
edxapp_installed is defined and celery_worker is not defined and not disable_edx_services
sudo
_user
:
"
{{
supervisor_service_user
}}"
become
_user
:
"
{{
supervisor_service_user
}}"
tags
:
-
manage
...
...
@@ -424,6 +424,6 @@
config
:
"
{{
supervisor_cfg
}}"
state
:
restarted
when
:
edxapp_installed is defined and celery_worker is defined and not disable_edx_services
sudo
_user
:
"
{{
common_web_user
}}"
become
_user
:
"
{{
common_web_user
}}"
tags
:
-
manage
playbooks/roles/edxapp/tasks/service_variant_config.yml
View file @
753be18d
...
...
@@ -3,7 +3,7 @@
template
:
src
:
"
{{
item[0]
}}.{{
item[1]
}}.json.j2"
dest
:
"
{{
edxapp_app_dir
}}/{{
item[0]
}}.{{
item[1]
}}.json"
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
with_nested
:
-
"
{{
service_variants_enabled
}}"
-
[
'
env'
,
'
auth'
]
...
...
@@ -16,7 +16,7 @@
template
:
src
:
"
{{
item[0]
}}.{{
item[1]
}}.yaml.j2"
dest
:
"
{{
EDXAPP_CFG_DIR
}}/{{
item[0]
}}.{{
item[1]
}}.yaml"
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
with_nested
:
-
"
{{
service_variants_enabled
}}"
-
[
'
env'
,
'
auth'
]
...
...
@@ -32,7 +32,7 @@
dest
:
"
{{
supervisor_available_dir
}}/{{
item
}}.conf"
owner
:
"
{{
supervisor_user
}}"
group
:
"
{{
supervisor_user
}}"
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
with_items
:
"
{{
service_variants_enabled
}}"
tags
:
-
install
...
...
@@ -45,7 +45,7 @@
dest
:
"
{{
supervisor_available_dir
}}/{{
item
}}"
owner
:
"
{{
supervisor_user
}}"
group
:
"
{{
supervisor_user
}}"
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
with_items
:
-
edxapp.conf
-
workers.conf
...
...
@@ -57,7 +57,7 @@
template
:
src
:
"
{{
item
}}_gunicorn.py.j2"
dest
:
"
{{
edxapp_app_dir
}}/{{
item
}}_gunicorn.py"
sudo
_user
:
"
{{
edxapp_user
}}"
become
_user
:
"
{{
edxapp_user
}}"
with_items
:
"
{{
service_variants_enabled
}}"
tags
:
-
install
...
...
@@ -70,7 +70,7 @@
dest
:
"
{{
supervisor_cfg_dir
}}/{{
item
}}.conf"
state
:
link
force
:
yes
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
with_items
:
"
{{
service_variants_enabled
}}"
when
:
celery_worker is not defined and not disable_edx_services
tags
:
...
...
@@ -83,7 +83,7 @@
dest
:
"
{{
supervisor_cfg_dir
}}/edxapp.conf"
state
:
link
force
:
yes
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
when
:
celery_worker is not defined and not disable_edx_services
tags
:
-
install
...
...
@@ -95,7 +95,7 @@
dest
:
"
{{
supervisor_cfg_dir
}}/workers.conf"
state
:
link
force
:
yes
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
when
:
celery_worker is defined and not disable_edx_services
tags
:
-
install
...
...
playbooks/roles/elasticsearch-monitor/tasks/main.yml
View file @
753be18d
...
...
@@ -26,14 +26,14 @@
args
:
chdir
:
"
{{
NEWRELIC_NPI_PREFIX
}}"
creates
:
"
{{
NEWRELIC_NPI_PREFIX
}}/plugins/{{
ELASTICSEARCH_MONITOR_PLUGIN
}}.compressed"
sudo
_user
:
"
{{
NEWRELIC_USER
}}"
become
_user
:
"
{{
NEWRELIC_USER
}}"
-
name
:
prepare elasticsearch plugin
shell
:
>
./npi prepare {{ ELASTICSEARCH_MONITOR_PLUGIN }} -n
args
:
chdir
:
"
{{
NEWRELIC_NPI_PREFIX
}}"
sudo
_user
:
"
{{
NEWRELIC_USER
}}"
become
_user
:
"
{{
NEWRELIC_USER
}}"
-
name
:
configure elasticsearch plugin
template
:
>
...
...
@@ -47,5 +47,5 @@
./npi add-service {{ ELASTICSEARCH_MONITOR_PLUGIN }} --start --user={{ NEWRELIC_USER }}
args
:
chdir
:
"
{{
NEWRELIC_NPI_PREFIX
}}"
sudo
_user
:
"
root"
become
_user
:
"
root"
playbooks/roles/flower/tasks/main.yml
View file @
753be18d
...
...
@@ -41,7 +41,7 @@
virtualenv
:
"
{{
flower_venv_dir
}}"
state
:
present
extra_args
:
"
-i
{{
COMMON_PYPI_MIRROR_URL
}}"
sudo
_user
:
"
{{
FLOWER_USER
}}"
become
_user
:
"
{{
FLOWER_USER
}}"
environment
:
"
{{
flower_environment
}}"
with_items
:
"
{{
flower_python_reqs
}}"
notify
:
...
...
@@ -53,7 +53,7 @@
dest
:
"
{{
supervisor_available_dir
}}/{{
FLOWER_USER
}}.conf"
owner
:
"
{{
supervisor_user
}}"
group
:
"
{{
supervisor_user
}}"
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
notify
:
-
restart flower
...
...
@@ -63,14 +63,14 @@
dest
:
"
{{
supervisor_cfg_dir
}}/{{
FLOWER_USER
}}.conf"
state
:
link
force
:
yes
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
notify
:
-
restart flower
-
name
:
Update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
sudo
_user
:
"
{{
supervisor_service_user
}}"
become
_user
:
"
{{
supervisor_service_user
}}"
changed_when
:
supervisor_update.stdout is defined and supervisor_update.stdout != ""
notify
:
-
restart flower
playbooks/roles/forum/tasks/deploy.yml
View file @
753be18d
...
...
@@ -6,7 +6,7 @@
owner
:
"
{{
supervisor_user
}}"
group
:
"
{{
supervisor_user
}}"
mode
:
0644
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
register
:
forum_supervisor
tags
:
-
install
...
...
@@ -20,7 +20,7 @@
state
:
link
force
:
yes
mode
:
0644
sudo
_user
:
"
{{
supervisor_user
}}"
become
_user
:
"
{{
supervisor_user
}}"
when
:
not disable_edx_services
register
:
forum_supervisor
tags
:
...
...
@@ -32,7 +32,7 @@
src
:
"
{{
forum_supervisor_wrapper|basename
}}.j2"
dest
:
"
{{
forum_supervisor_wrapper
}}"
mode
:
0755
sudo
_user
:
"
{{
forum_user
}}"
become
_user
:
"
{{
forum_user
}}"
notify
:
restart the forum service
tags
:
-
install
...
...
@@ -44,7 +44,7 @@
repo
:
"
{{
forum_source_repo
}}"
version
:
"
{{
forum_version
}}"
accept_hostkey
:
yes
sudo
_user
:
"
{{
forum_user
}}"
become
_user
:
"
{{
forum_user
}}"
register
:
forum_checkout
notify
:
restart the forum service
tags
:
...
...
@@ -53,7 +53,7 @@
-
name
:
install comments service bundle
shell
:
"
bundle
install
--deployment
--path
{{
forum_gem_root
}}
chdir={{
forum_code_dir
}}"
sudo
_user
:
"
{{
forum_user
}}"
become
_user
:
"
{{
forum_user
}}"
environment
:
"
{{
forum_environment
}}"
notify
:
restart the forum service
tags
:
...
...
playbooks/roles/git_clone/tasks/main.yml
View file @
753be18d
...
...
@@ -19,7 +19,7 @@
#
-
name
:
set git fetch.prune to ignore deleted remote refs
shell
:
git config --global fetch.prune
true
sudo
_user
:
"
{{
repo_owner
}}"
become
_user
:
"
{{
repo_owner
}}"
when
:
GIT_REPOS is defined
tags
:
-
install
...
...
@@ -53,7 +53,7 @@
version
:
"
{{
item.VERSION
}}"
accept_hostkey
:
yes
key_file
:
"
{{
git_home
}}/.ssh/{{
item.REPO
}}"
sudo
_user
:
"
{{
repo_owner
}}"
become
_user
:
"
{{
repo_owner
}}"
register
:
code_checkout
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items
:
GIT_REPOS
...
...
@@ -66,7 +66,7 @@
repo
:
"
https://{{
item.DOMAIN
}}/{{
item.PATH
}}/{{
item.REPO
}}"
dest
:
"
{{
item.DESTINATION
}}"
version
:
"
{{
item.VERSION
}}"
sudo
_user
:
"
{{
repo_owner
}}"
become
_user
:
"
{{
repo_owner
}}"
register
:
code_checkout
when
:
item.PROTOCOL == "https" and GIT_REPOS is defined
with_items
:
GIT_REPOS
...
...
playbooks/roles/gitreload/tasks/course_pull.yml
View file @
753be18d
...
...
@@ -2,7 +2,7 @@
-
name
:
clone all course repos
git_2_0_1
:
dest={{ GITRELOAD_REPODIR }}/{{ item.name }} repo={{ item.url }} version={{ item.commit }}
sudo
_user
:
"
{{
common_web_user
}}"
become
_user
:
"
{{
common_web_user
}}"
with_items
:
GITRELOAD_REPOS
-
name
:
do import of courses
...
...
@@ -10,7 +10,7 @@
executable=/bin/bash
chdir="{{ edxapp_code_dir }}"
SERVICE_VARIANT=lms {{ edxapp_venv_bin }}/python manage.py lms --settings=aws git_add_course {{ item.url }} {{ GITRELOAD_REPODIR }}/{{ item.name }}
sudo
_user
:
"
{{
common_web_user
}}"
become
_user
:
"
{{
common_web_user
}}"
with_items
:
GITRELOAD_REPOS
-
name
:
change ownership on repos for access by edxapp and www-data
...
...
playbooks/roles/gitreload/tasks/deploy.yml
View file @
753be18d
-
name
:
create ssh dir for the content repos key
file
:
path=~/.ssh state=directory mode=0700
sudo
_user
:
"
{{
common_web_user
}}"
become
_user
:
"
{{
common_web_user
}}"
-
name
:
install ssh key for the content repos
copy
:
content="{{ GITRELOAD_GIT_IDENTITY }}" dest=~/.ssh/id_rsa mode=0600
sudo
_user
:
"
{{
common_web_user
}}"
become
_user
:
"
{{
common_web_user
}}"
-
include
:
course_pull.yml
when
:
GITRELOAD_COURSE_CHECKOUT|bool
...
...
@@ -15,18 +15,18 @@
name=git+{{ gitreload_repo }}@{{ gitreload_version }}#egg=gitreload
virtualenv={{ gitreload_venv }}
extra_args="--exists-action w"
sudo
_user
:
"
{{
gitreload_user
}}"
become
_user
:
"
{{
gitreload_user
}}"
notify
:
restart gitreload
-
name
:
copy configuration
template
:
src=edx/app/gitreload/gr.env.json.j2 dest={{ gitreload_dir }}/gr.env.json
sudo
_user
:
"
{{
gitreload_user
}}"
become
_user
:
"
{{
gitreload_user
}}"
notify
:
restart gitreload
-
name
:
"
add
gunicorn
configuration
file"
template
:
>
src=edx/app/gitreload/gitreload_gunicorn.py.j2 dest={{ gitreload_dir }}/gitreload_gunicorn.py
sudo
_user
:
"
{{
gitreload_user
}}"
become
_user
:
"
{{
gitreload_user
}}"
notify
:
restart gitreload
-
name
:
"
writing
supervisor
script"
...
...
playbooks/roles/gitreload/tasks/main.yml
View file @
753be18d
...
...
@@ -20,7 +20,7 @@
# Example playbook:
#
# - hosts: all
#
sudo
: True
#
become
: True
# gather_facts: True
# vars:
# COMMON_ENABLE_BASIC_AUTH: True
...
...
@@ -60,7 +60,7 @@
-
name
:
grab ssh host keys
shell
:
ssh-keyscan {{ item }}
sudo
_user
:
"
{{
common_web_user
}}"
become
_user
:
"
{{
common_web_user
}}"
with_items
:
GITRELOAD_HOSTS
register
:
gitreload_repo_host_keys
...
...
@@ -69,7 +69,7 @@
create=yes
dest=~/.ssh/known_hosts
line="{{ item.stdout }}"
sudo
_user
:
"
{{
common_web_user
}}"
become
_user
:
"
{{
common_web_user
}}"
with_items
:
gitreload_repo_host_keys.results
-
name
:
create a symlink for venv python
...
...
playbooks/roles/go-server/tasks/download_backup.yml
View file @
753be18d
...
...
@@ -18,7 +18,7 @@
#
# - name: Configure instance(s)
# hosts: go-server
#
sudo
: True
#
become
: True
# vars_files:
# - "{{ secure_dir }}/admin/sandbox.yml"
# gather_facts: True
...
...
playbooks/roles/go-server/tasks/main.yml
View file @
753be18d
...
...
@@ -22,7 +22,7 @@
#
# - name: Configure instance(s)
# hosts: go-server
#
sudo
: True
#
become
: True
# vars_files:
# - "{{ secure_dir }}/admin/sandbox.yml"
# gather_facts: True
...
...
playbooks/roles/go-server/tasks/restore_backup.yml
View file @
753be18d
...
...
@@ -18,7 +18,7 @@
#
# - name: Configure instance(s)
# hosts: go-server
#
sudo
: True
#
become
: True
# vars_files:
# - "{{ secure_dir }}/admin/sandbox.yml"
# gather_facts: True
...
...
playbooks/roles/go-server/tasks/setup_regular_backup.yml
View file @
753be18d
...
...
@@ -19,7 +19,7 @@
#
# - name: Configure instance(s)
# hosts: go-server
#
sudo
: True
#
become
: True
# vars_files:
# - "{{ secure_dir }}/admin/sandbox.yml"
# gather_facts: True
...
...
playbooks/roles/hadoop_master/tasks/main.yml
View file @
753be18d
...
...
@@ -36,5 +36,5 @@
-
name
:
namenode formatted
shell
:
>
. {{ HADOOP_COMMON_CONF_DIR }}/hadoop-env.sh && hdfs namenode -format
sudo
_user
:
"
{{
hadoop_common_user
}}"
become
_user
:
"
{{
hadoop_common_user
}}"
when
:
not namenode_version_file.stat.exists
playbooks/roles/harprofiler/tasks/main.yml
View file @
753be18d
...
...
@@ -18,7 +18,7 @@
dest={{ harprofiler_dir }}
repo={{ harprofiler_github_url }} version={{ harprofiler_version }}
accept_hostkey=yes
sudo
_user
:
"
{{
harprofiler_user
}}"
become
_user
:
"
{{
harprofiler_user
}}"
-
name
:
set bashrc for harprofiler user
template
:
>
...
...
@@ -28,7 +28,7 @@
-
name
:
install requirements
pip
:
>
requirements="{{ harprofiler_dir }}/requirements.txt" virtualenv="{{ harprofiler_venv_dir }}"
sudo
_user
:
"
{{
harprofiler_user
}}"
become
_user
:
"
{{
harprofiler_user
}}"
-
name
:
update config file
# harprofiler ships with a default config file. Doing a line-replace for the default
...
...
@@ -45,10 +45,10 @@
src
:
validate_harprofiler_install.sh.j2
dest
:
"
{{
harprofiler_dir
}}/{{
harprofiler_validation_script
}}"
mode
:
0755
sudo
_user
:
"
{{
harprofiler_user
}}"
become
_user
:
"
{{
harprofiler_user
}}"
-
name
:
test install
shell
:
>
./{{ harprofiler_validation_script }} chdir={{ harprofiler_dir }}
sudo
_user
:
"
{{
harprofiler_user
}}"
become
_user
:
"
{{
harprofiler_user
}}"
playbooks/roles/harstorage/tasks/main.yml
View file @
753be18d
...
...
@@ -30,7 +30,7 @@
tags
:
-
install
-
install:app-requirements
sudo
_user
:
"
{{
harstorage_user
}}"
become
_user
:
"
{{
harstorage_user
}}"
with_items
:
harstorage_python_pkgs
-
name
:
create directories
...
...
playbooks/roles/insights/tasks/main.yml
View file @
753be18d
...
...
@@ -37,7 +37,7 @@
requirements="{{ insights_requirements_base }}/{{ item }}"
virtualenv="{{ insights_venv_dir }}"
state=present extra_args="--exists-action w"
sudo
_user
:
"
{{
insights_user
}}"
become
_user
:
"
{{
insights_user
}}"
with_items
:
insights_requirements
tags
:
-
install
...
...
@@ -47,14 +47,14 @@
shell
:
>
creates={{ insights_nodeenv_dir }}
{{ insights_venv_dir }}/bin/nodeenv {{ insights_nodeenv_dir }} --prebuilt
sudo
_user
:
"
{{
insights_user
}}"
become
_user
:
"
{{
insights_user
}}"
tags
:
-
install
-
install:base
-
name
:
install node dependencies
npm
:
executable={{ insights_nodeenv_bin }}/npm path={{ insights_code_dir }} production=yes
sudo
_user
:
"
{{
insights_user
}}"
become
_user
:
"
{{
insights_user
}}"
tags
:
-
install
-
install:app-requirements
...
...
@@ -64,7 +64,7 @@
shell
:
>
chdir={{ insights_code_dir }}
. {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/bower install --production --config.interactive=false
sudo
_user
:
"
{{
insights_user
}}"
become
_user
:
"
{{
insights_user
}}"
tags
:
-
install
-
install:app-requirements
...
...
@@ -75,7 +75,7 @@
DB_MIGRATION_USER='{{ COMMON_MYSQL_MIGRATE_USER }}'
DB_MIGRATION_PASS='{{ COMMON_MYSQL_MIGRATE_PASS }}'
{{ insights_venv_dir }}/bin/python {{ insights_manage }} migrate --noinput
sudo
_user
:
"
{{
insights_user
}}"
become
_user
:
"
{{
insights_user
}}"
environment
:
"
{{
insights_environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
...
...
@@ -86,7 +86,7 @@
shell
:
>
chdir={{ insights_code_dir }}
. {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/r.js -o build.js
sudo
_user
:
"
{{
insights_user
}}"
become
_user
:
"
{{
insights_user
}}"
tags
:
-
assets
-
assets:gather
...
...
@@ -95,7 +95,7 @@
shell
:
>
chdir={{ insights_code_dir }}
{{ insights_venv_dir }}/bin/python {{ insights_manage }} {{ item }}
sudo
_user
:
"
{{
insights_user
}}"
become
_user
:
"
{{
insights_user
}}"
environment
:
"
{{
insights_environment
}}"
with_items
:
-
"
collectstatic
--noinput"
...
...
@@ -108,7 +108,7 @@
shell
:
>
chdir={{ insights_code_dir }}/analytics_dashboard
. {{ insights_venv_dir }}/bin/activate && i18n_tool generate -v
sudo
_user
:
"
{{
insights_user
}}"
become
_user
:
"
{{
insights_user
}}"
tags
:
-
assets
-
assets:gather
...
...
@@ -178,6 +178,6 @@
config={{ supervisor_cfg }}
name={{ insights_service_name }}
when
:
not disable_edx_services
sudo
_user
:
"
{{
supervisor_service_user
}}"
become
_user
:
"
{{
supervisor_service_user
}}"
tags
:
-
manage:start
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