From f9d0d7763736a2a52e25bcd79b0e2dde348611af Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 17 Nov 2017 11:16:26 -0600 Subject: [PATCH] add hard reboot tasks These tasks will hard-reboot a server when it is unresponsive. Use these tasks when the machine is not responding to SSH. Fixes #18 --- Rexfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Rexfile b/Rexfile index d4d7f64..86ce730 100644 --- a/Rexfile +++ b/Rexfile @@ -733,6 +733,34 @@ task update_legacy_config => }; }; +=head2 reboot + +Reboot a server. Each server has a different method of rebooting. This is +a hard reboot. Only use it when the server is not responding to SSH. + +=cut + +my %servers = ( + 'cpantesters1.barnyard.co.uk' => [ + _reboot_xen => 'hertzfeld.barnyard.co.uk', 'cpantesters1.barnyard.co.uk', + ], + 'cpantesters3.dh.bytemark.co.uk' => [ + _reboot_bytemark => 'cpantesters3.dhadmin.bytemark.co.uk', + ], +); + +task reboot => sub { + +}; + +task _reboot_xen => sub { + +}; + +task _reboot_bytemark => sub { + +}; + ####################################################################### =head1 Subroutines