File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 5
5
@task
6
6
@roles ('class-cache' )
7
7
def fail_to_mirror ():
8
- """Fails the site to the mirror"""
8
+ """Fails the site to the mirror by stopping nginx on the cache nodes """
9
9
puppet .disable ("Fabric fail_to_mirror task invoked" )
10
- nginx .disable_vhost ("www.gov.uk" )
11
- nginx .force_restart ()
10
+ nginx_kill ()
12
11
print ("Disabled Puppet and www.gov.uk vhost, remember to re-enable and re-run puppet to restore previous state" )
13
12
14
13
@task
Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ def gracefulrestart():
15
15
gracefulstop ()
16
16
start ()
17
17
18
- @task
19
- def disable_vhost (vhost_filename ):
20
- """Disable a vhost by removing its symlink from /etc/nginx/sites-enabled"""
21
- sudo ('rm -f /etc/nginx/sites-enabled/%s' % vhost_filename )
22
-
23
18
@task
24
19
def kill ():
25
20
"""Shut down Nginx immediately without waiting for it to finish running"""
You can’t perform that action at this time.
0 commit comments