diff options
| author | Paul Buetow <paul@buetow.org> | 2022-04-13 09:39:30 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-04-13 09:39:30 +0100 |
| commit | 5f27bc8bb8b567f8ac816c7450d55575672193af (patch) | |
| tree | 8e4e726e8d738036d54d17d95d9ddcce4426fec2 | |
| parent | cea1c82096ab0e22af29e7f7f73a76f4eed8ba6a (diff) | |
initial rexfile
| -rw-r--r-- | openbsd/frontends/Rexfile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/openbsd/frontends/Rexfile b/openbsd/frontends/Rexfile new file mode 100644 index 0000000..0ef0bfa --- /dev/null +++ b/openbsd/frontends/Rexfile @@ -0,0 +1,38 @@ +use Rex -feature => ['1.4']; + + +group frontends => 'blowfish.buetow.org', 'twofish.buetow.org'; +group dnsmaster => 'blowfish.buetow.org'; +group dnsslaves => 'twofish.buetow.org'; + +user 'rex'; +sudo TRUE; + +parallelism 5; + +task 'id', group => 'frontends', + sub { + my $output = run 'id'; + say $output; + }; + +task 'dump-info', group => 'frontends', + sub { dump_system_information }; + +desc 'Get the uptime of all servers'; +task 'uptime', group => 'frontends', + sub { + my $output = run 'uptime'; + say $output; + }; + +desc 'Setup inetd'; +task 'inetd', group => 'frontends', + sub { + my $output = run 'cat /etc/inetd.conf'; + say $output; + }; + +1; + +# vim: syntax=perl |
