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
62df7fce
Commit
62df7fce
authored
Jun 11, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1201 from edx/jarv/diff-and-check
Jarv/diff and check
parents
ec9356f0
f77cbfe3
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
33 additions
and
25 deletions
+33
-25
playbooks/edx-east/connect_sandbox.yml
+4
-0
playbooks/roles/alton/tasks/deploy.yml
+2
-2
playbooks/roles/certs/tasks/deploy.yml
+1
-1
playbooks/roles/devpi/tasks/main.yml
+1
-1
playbooks/roles/discern/tasks/deploy.yml
+1
-1
playbooks/roles/edxapp/tasks/deploy.yml
+2
-2
playbooks/roles/flower/tasks/main.yml
+1
-1
playbooks/roles/forum/tasks/deploy.yml
+1
-1
playbooks/roles/ora/tasks/deploy.yml
+1
-1
playbooks/roles/rabbitmq/tasks/main.yml
+1
-1
playbooks/roles/rbenv/tasks/main.yml
+3
-3
playbooks/roles/stop_all_edx_services/tasks/main.yml
+6
-6
playbooks/roles/supervisor/tasks/main.yml
+2
-2
playbooks/roles/xqueue/tasks/deploy.yml
+1
-1
playbooks/roles/xserver/tasks/deploy.yml
+1
-1
util/jenkins/run-ansible.sh
+5
-1
No files found.
playbooks/edx-east/connect_sandbox.yml
View file @
62df7fce
...
...
@@ -34,11 +34,13 @@
/edx/bin/s3cmd get {{ s3cmd_out_forum.stdout }} --skip-existing
chdir=/mnt
tags
:
update_mongo_data
when
:
s3cmd_out_forum.stdout is defined
-
name
:
untar the s3 backup
shell
:
>
tar zxf {{ s3cmd_out_forum.stdout|basename }}
chdir=/mnt
when
:
s3cmd_out_forum.stdout is defined
tags
:
update_mongo_data
...
...
@@ -53,12 +55,14 @@
/edx/bin/s3cmd get {{ s3cmd_out_modulestore.stdout }} --skip-existing
chdir=/mnt
tags
:
update_mongo_data
when
:
s3cmd_out_modulestore.stdout is defined
-
name
:
untar the s3 backup
shell
:
>
tar zxf {{ s3cmd_out_modulestore.stdout|basename }}
chdir=/mnt
tags
:
update_mongo_data
when
:
s3cmd_out_modulestore.stdout is defined
-
name
:
Restore the mongo data for the forums
shell
:
>
...
...
playbooks/roles/alton/tasks/deploy.yml
View file @
62df7fce
...
...
@@ -44,7 +44,7 @@
-
name
:
update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
when
:
not disable_edx_services
-
name
:
ensure alton is started
...
...
@@ -54,4 +54,4 @@
config={{ supervisor_cfg }}
state=started
when
:
not disable_edx_services
playbooks/roles/certs/tasks/deploy.yml
View file @
62df7fce
...
...
@@ -75,7 +75,7 @@
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
sudo_user
:
"
{{
supervisor_service_user
}}"
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
when
:
not disable_edx_services
-
name
:
ensure certs has started
...
...
playbooks/roles/devpi/tasks/main.yml
View file @
62df7fce
...
...
@@ -103,7 +103,7 @@
-
name
:
update devpi supervisor configuration
shell
:
"
{{
devpi_supervisor_ctl
}}
-c
{{
devpi_supervisor_cfg
}}
update"
register
:
supervisor_update
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
-
name
:
ensure devpi is started
supervisorctl_local
:
>
...
...
playbooks/roles/discern/tasks/deploy.yml
View file @
62df7fce
...
...
@@ -123,7 +123,7 @@
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
sudo_user
:
"
{{
supervisor_service_user
}}"
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
when
:
not disable_edx_services
-
name
:
ensure discern, discern_celery has started
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
62df7fce
...
...
@@ -309,7 +309,7 @@
sudo_user
:
"
{{
edxapp_sandbox_user
}}"
when
:
EDXAPP_PYTHON_SANDBOX
register
:
sandbox_install_output
changed_when
:
"
'installed'
in
sandbox_install_output"
changed_when
:
sandbox_install_output.stdout is defined and 'installed' in sandbox_install_output.stdout
notify
:
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
...
...
@@ -372,7 +372,7 @@
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
sudo_user
:
"
{{
supervisor_service_user
}}"
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
when
:
not disable_edx_services
-
name
:
ensure edxapp has started
...
...
playbooks/roles/flower/tasks/main.yml
View file @
62df7fce
...
...
@@ -62,6 +62,6 @@
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
sudo_user
:
"
{{
supervisor_service_user
}}"
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
notify
:
-
"
restart
flower"
playbooks/roles/forum/tasks/deploy.yml
View file @
62df7fce
...
...
@@ -53,7 +53,7 @@
-
name
:
update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined supervisor_update.stdout
!= ""
when
:
not disable_edx_services
-
name
:
ensure forum is started
...
...
playbooks/roles/ora/tasks/deploy.yml
View file @
62df7fce
...
...
@@ -104,7 +104,7 @@
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
when
:
not disable_edx_services
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined supervisor_update.stdout
!= ""
-
name
:
ensure ora is started
supervisorctl_local
:
>
...
...
playbooks/roles/rabbitmq/tasks/main.yml
View file @
62df7fce
...
...
@@ -26,7 +26,7 @@
shell
:
>
gdebi --n {{ rabbitmq_pkg_url|basename }}
chdir=/var/tmp
when
:
is_installed.stdout == "not installed"
when
:
is_installed.stdout
is defined and is_installed.stdout
== "not installed"
-
name
:
stop rabbit cluster
service
:
name=rabbitmq-server state=stopped
...
...
playbooks/roles/rbenv/tasks/main.yml
View file @
62df7fce
...
...
@@ -83,16 +83,16 @@
git
:
>
repo=https://github.com/sstephenson/ruby-build.git dest={{ tempdir.stdout }}/ruby-build
accept_hostkey=yes
when
:
rbuild_present|failed or (installable_ruby_vers is defined and rbenv_ruby_version not in installable_ruby_vers
)
when
:
tempdir.stdout is defined and (rbuild_present|failed or (installable_ruby_vers is defined and rbenv_ruby_version not in installable_ruby_vers)
)
sudo_user
:
"
{{
rbenv_user
}}"
-
name
:
install ruby-build
command
:
./install.sh chdir={{ tempdir.stdout }}/ruby-build
when
:
rbuild_present|failed or (installable_ruby_vers is defined and rbenv_ruby_version not in installable_ruby_vers
)
when
:
tempdir.stdout is defined and (rbuild_present|failed or (installable_ruby_vers is defined and rbenv_ruby_version not in installable_ruby_vers)
)
-
name
:
remove temporary directory
file
:
path={{ tempdir.stdout }} state=absent
when
:
rbuild_present|failed or (installable_ruby_vers is defined and rbenv_ruby_version not in installable_ruby_vers
)
when
:
tempdir.stdout is defined and (rbuild_present|failed or (installable_ruby_vers is defined and rbenv_ruby_version not in installable_ruby_vers)
)
-
name
:
check ruby {{ rbenv_ruby_version }} installed
shell
:
"
rbenv
versions
|
grep
{{
rbenv_ruby_version
}}"
...
...
playbooks/roles/stop_all_edx_services/tasks/main.yml
View file @
62df7fce
...
...
@@ -25,37 +25,37 @@
-
name
:
stop supervisor
stat
:
path=/etc/init/supervisor.conf
register
:
stat_out
changed_when
:
stat_out.stat.exists
changed_when
:
stat_out
is defined and stat_out
.stat.exists
notify
:
stop supervisor
-
name
:
stop supervisor.devpi
stat
:
path=/etc/init/supervisor.devpi.conf
register
:
stat_out
changed_when
:
stat_out.stat.exists
changed_when
:
stat_out
is defined and stat_out
.stat.exists
notify
:
stop supervisor
-
name
:
stop nginx
stat
:
path=/etc/init.d/nginx
register
:
stat_out
changed_when
:
stat_out.stat.exists
changed_when
:
stat_out
is defined and stat_out
.stat.exists
notify
:
stop nginx
-
name
:
stop rabbitmq-server
stat
:
path=/etc/init.d/rabbitmq-server
register
:
stat_out
changed_when
:
stat_out.stat.exists
changed_when
:
stat_out
is defined and stat_out
.stat.exists
notify
:
stop rabbitmq-server
-
name
:
stop memcached
stat
:
path=/etc/init.d/memcached
register
:
stat_out
changed_when
:
stat_out.stat.exists
changed_when
:
stat_out
is defined and stat_out
.stat.exists
notify
:
stop memcached
-
name
:
stop mongodb
stat
:
path=/etc/init.d/mongodb
register
:
stat_out
changed_when
:
stat_out.stat.exists
changed_when
:
stat_out
is defined and stat_out
.stat.exists
notify
:
stop mongodb
-
shell
:
"
true"
...
...
playbooks/roles/supervisor/tasks/main.yml
View file @
62df7fce
...
...
@@ -115,7 +115,7 @@
-
name
:
write the pre_suprevisor python script
copy
:
>
src=pre_supervisor_checks.py
src=pre_supervisor_checks.py
dest={{ supervisor_app_dir }}/pre_supervisor_checks.py
mode=0750
owner={{ supervisor_user }}
...
...
@@ -166,4 +166,4 @@
-
name
:
update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
playbooks/roles/xqueue/tasks/deploy.yml
View file @
62df7fce
...
...
@@ -91,7 +91,7 @@
-
name
:
update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
when
:
not disable_edx_services
-
name
:
ensure xqueue, consumer is running
...
...
playbooks/roles/xserver/tasks/deploy.yml
View file @
62df7fce
...
...
@@ -70,7 +70,7 @@
-
name
:
update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
changed_when
:
supervisor_update.stdout != ""
changed_when
:
supervisor_update.stdout
is defined and supervisor_update.stdout
!= ""
when
:
not disable_edx_services
-
name
:
ensure xserver is started
...
...
util/jenkins/run-ansible.sh
View file @
62df7fce
...
...
@@ -31,6 +31,10 @@ if [[ $run_migrations == "true" ]]; then
ansible_extra_vars+
=
" -e migrate_db=yes"
fi
if
[[
$check_mode
==
"true"
]]
;
then
ansible_extra_vars+
=
" --check"
fi
if
[[
!
-z
"
$run_on_single_ip
"
]]
;
then
ansible_limit+
=
"
$run_on_single_ip
"
else
...
...
@@ -46,4 +50,4 @@ fi
export
PYTHONUNBUFFERED
=
1
env
ansible-playbook
-v
-u
ubuntu
$ansible_play
-i
./ec2.py
$ansible_task_tags
--limit
$ansible_limit
-e
@
"
$WORKSPACE
/configuration-secure/ansible/vars/
${
deployment_tag
}
.yml"
-e
@
"
$WORKSPACE
/configuration-secure/ansible/vars/
${
environment_tag
}
-
${
deployment_tag
}
.yml"
$ansible_extra_vars
ansible-playbook
-v
-
D
-
u
ubuntu
$ansible_play
-i
./ec2.py
$ansible_task_tags
--limit
$ansible_limit
-e
@
"
$WORKSPACE
/configuration-secure/ansible/vars/
${
deployment_tag
}
.yml"
-e
@
"
$WORKSPACE
/configuration-secure/ansible/vars/
${
environment_tag
}
-
${
deployment_tag
}
.yml"
$ansible_extra_vars
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