Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
incident.fail_to_mirror
1 parent cddef0a commit e83c0c7Copy full SHA for e83c0c7
fabfile.py
@@ -16,6 +16,7 @@
16
import apt
17
import cache
18
import es
19
+import incident
20
import licensify
21
import logstream
22
import mongo
incident.py
@@ -0,0 +1,11 @@
1
+from fabric.api import *
2
+from nginx import kill as nginx_kill
3
+from puppet import disable as puppet_disable
4
+
5
+@task
6
+@roles('class-cache')
7
+def fail_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