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.
2 parents 812ecaf + 6667396 commit 216971cCopy full SHA for 216971c
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,8 +8,9 @@
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
- print("Disabled Puppet and www.gov.uk vhost, remember to re-enable and re-run puppet to restore previous state")
+ execute(nginx.kill)
12
+ print('Disabled Puppet and switched off Nginx.')
13
+ print('Run `incident.recover_origin` to start serving from origin again.')
14
15
@task
16
@roles('class-cache')
0 commit comments