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
003c2d0c
Commit
003c2d0c
authored
Aug 22, 2014
by
e0d
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1462 from edx/e0d/fix-race-condition
fixes nginx access log rotate issue
parents
8f73058d
f1568fb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
playbooks/edx-east/retire_host.yml
+14
-4
No files found.
playbooks/edx-east/retire_host.yml
View file @
003c2d0c
# ansible-playbook -i ./lifecycle_inventory.py ./retire_host.yml
# -e@/vars/env.yml --limit Terminating_Wait
-
name
:
Server retirement workflow
hosts
:
all
#
# This is separate because it's use of handlers
# leads to various race conditions.
#
-
name
:
Stop all services
hosts
:
Terminating_Wait
sudo
:
True
gather_facts
:
False
vars
:
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
:
"
--no-wait"
roles
:
-
stop_all_edx_services
-
name
:
Server retirement workflow
hosts
:
Terminating_Wait
sudo
:
True
gather_facts
:
False
tasks
:
-
name
:
Force a log rotation
command
:
/usr/sbin/logrotate -f /etc/logrotate.d/{{ item }}
...
...
@@ -34,12 +43,13 @@
-
"
tracking.log"
-
"
edx-services"
-
name
:
Terminate existing s3 log sync
command
:
/usr/bin/pkill send-logs-to-s3
command
:
/usr/bin/pkill send-logs-to-s3
||
true
-
name
:
Send logs to s3
command
:
/edx/bin/send-logs-to-s3
-
name
:
Run minos verification
hosts
:
all
hosts
:
Terminating_Wait
sudo
:
True
gather_facts
:
False
tasks
:
...
...
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