Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite83c0c7

Browse files
committed
Add newincident.fail_to_mirror task
This explicitly turns off Puppet and Nginx on the cache nodes, enablingthe site to fail to edge and mirror instead.
1 parentcddef0a commite83c0c7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

‎fabfile.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
importapt
1717
importcache
1818
importes
19+
importincident
1920
importlicensify
2021
importlogstream
2122
importmongo

‎incident.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
fromfabric.apiimport*
2+
fromnginximportkillasnginx_kill
3+
frompuppetimportdisableaspuppet_disable
4+
5+
@task
6+
@roles('class-cache')
7+
deffail_to_mirror():
8+
"""Fails the site to the mirror"""
9+
puppet_disable()
10+
nginx_kill()
11+
print("Disabled Puppet and stopped Nginx, remember to re-enable these")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp