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 812ecaf commit 1752fb9Copy full SHA for 1752fb9
incident.py
@@ -1,4 +1,5 @@
1
from fabric.api import *
2
+from fabric.tasks import execute
3
import nginx
4
import puppet
5
@@ -7,7 +8,7 @@
7
8
def fail_to_mirror():
9
"""Fails the site to the mirror by stopping nginx on the cache nodes"""
10
puppet.disable("Fabric fail_to_mirror task invoked")
- nginx_kill()
11
+ execute(nginx.kill)
12
print("Disabled Puppet and www.gov.uk vhost, remember to re-enable and re-run puppet to restore previous state")
13
14
@task
0 commit comments