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 53a1cf0 + 768e073 commit 737ffa5Copy full SHA for 737ffa5
vm.py
@@ -65,3 +65,14 @@ def reboot():
65
from nagios import schedule_downtime
66
execute(schedule_downtime, env['host_string'])
67
run("sudo shutdown -r now")
68
+
69
+@task
70
+def poweroff():
71
+ """Schedule a host for downtime in nagios and shutdown the VM
72
73
+ Usage:
74
+ fab production -H frontend-1.frontend.production vm.poweroff
75
+ """
76
+ from nagios import schedule_downtime
77
+ execute(schedule_downtime, env['host_string'])
78
+ run("sudo poweroff")
0 commit comments