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
01f5ea1c
Commit
01f5ea1c
authored
8 years ago
by
Feanil Patel
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3461 from edx/feanil/retire_xenial_hosts
Feanil/retire xenial hosts
parents
da578d17
1ca28753
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
5 deletions
+36
-5
playbooks/edx-east/retire_host.yml
+6
-4
playbooks/roles/edxapp/tasks/main.yml
+22
-1
playbooks/roles/stop_all_edx_services/tasks/main.yml
+8
-0
No files found.
playbooks/edx-east/retire_host.yml
View file @
01f5ea1c
...
...
@@ -11,9 +11,11 @@
-
name
:
Stop all services
hosts
:
"
{{TARGET}}"
become
:
True
gather_facts
:
False
vars
:
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
:
"
--no-wait"
gather_facts
:
True
pre_tasks
:
-
set_fact
:
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
:
"
--no-wait"
when
:
ansible_distribution_release == 'precise' or ansible_distribution_release == 'trusty'
roles
:
-
stop_all_edx_services
...
...
@@ -23,7 +25,7 @@
gather_facts
:
False
tasks
:
-
name
:
Terminate existing object store log sync
command
:
/usr/bin/pkill send-logs-to-object-store ||
true
shell
:
/usr/bin/pkill send-logs-to-object-store ||
true
-
name
:
"
Ensure
send-logs-to-object-store
script
is
in
the
logrotate
file"
shell
:
grep send-logs-to-object-store /etc/logrotate.d/hourly/tracking.log
# We only force a rotation of edx logs.
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/edxapp/tasks/main.yml
View file @
01f5ea1c
...
...
@@ -61,6 +61,27 @@
-
install
-
install:base
-
name
:
Ensure the tracking folder exists
file
:
path
:
"
{{
COMMON_LOG_DIR
}}/tracking"
state
:
directory
owner
:
root
group
:
root
tags
:
-
install
-
install:base
-
name
:
Ensure the tracking.log file exists
file
:
path
:
"
{{
COMMON_LOG_DIR
}}/tracking/tracking.log"
state
:
touch
owner
:
syslog
group
:
adm
mode
:
"
0640"
tags
:
-
install
-
install:base
-
name
:
create web-writable edxapp data dirs
file
:
path
:
"
{{
item
}}"
...
...
@@ -81,10 +102,10 @@
-
name
:
add ppas for current versions of nodejs
apt_repository
:
repo
:
"
{{
edxapp_chrislea_ppa
}}"
when
:
ansible_distribution_release == 'precise'
tags
:
-
install
-
install:base
when
:
ansible_distribution_release == 'precise'
-
name
:
install system packages on which LMS and CMS rely
apt
:
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/stop_all_edx_services/tasks/main.yml
View file @
01f5ea1c
...
...
@@ -62,5 +62,13 @@
notify
:
-
stop mongodb
-
name
:
Stop supervisor systemd
stat
:
path
:
/etc/systemd/system/supervisor.service
register
:
stat_out
changed_when
:
stat_out is defined and stat_out.stat.exists
notify
:
-
stop supervisor
-
shell
:
"
true"
notify
:
kill processes by user
This diff is collapsed.
Click to expand it.
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