Skip to content

Commit

Permalink
add hard reboot tasks
Browse files Browse the repository at this point in the history
These tasks will hard-reboot a server when it is unresponsive. Use these
tasks when the machine is not responding to SSH.

Fixes #18
  • Loading branch information
preaction committed Nov 17, 2017
1 parent be71cb3 commit f9d0d77
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Rexfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9d0d77

Please sign in to comment.