diff options
| author | Paul Buetow <paul@buetow.org> | 2024-03-20 10:09:26 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-03-20 10:09:26 +0200 |
| commit | c3c8a774d3a0947880f0416b3e3b1b877a86a7c6 (patch) | |
| tree | 93864085a1fdb8febac0d44eb0252d6f1c9ee34e /frontends/Rexfile | |
| parent | e14a5b471ab59b08d07f195778011ea68cb0e7d8 (diff) | |
failover script works, it's now ksh, btw.
Diffstat (limited to 'frontends/Rexfile')
| -rw-r--r-- | frontends/Rexfile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index 0d9d184..4456755 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -1,6 +1,6 @@ # How to use: # -# rex commons nsd_master nsd_slaves +# rex commons # # Why use Rex to automate my servers? Because Rex is KISS, Puppet, SALT and Chef # are not. So, why not use Ansible then? To use Ansible correctly you should also @@ -293,7 +293,7 @@ task 'smtpd', group => 'frontends', }; desc 'Setup DNS server(s)'; -task 'nsd_master', group => 'frontends', +task 'nsd', group => 'frontends', sub { my $restart = FALSE; append_if_no_such_line '/etc/rc.conf.local', 'nsd_flags='; @@ -338,6 +338,16 @@ task 'nsd_master', group => 'frontends', service 'nsd', ensure => 'started'; }; +desc 'Setup DNS failover script(s)'; +task 'nsd_failover', group => 'frontends', + sub { + file '/usr/local/bin/dns-failover.sh', + source => './scripts/dns-failover.ksh', + owner => 'root', + group => 'wheel', + mode => '500'; + }; + desc 'Setup DTail'; task 'dtail', group => 'frontends', sub { @@ -501,6 +511,8 @@ task 'ircbouncer', group => 'ircbouncer', desc 'Common configs of all hosts'; task 'commons', group => 'frontends', sub { run_task 'base'; + run_task 'nsd'; + run_task 'nsd_failover'; run_task 'uptimed'; run_task 'httpd'; run_task 'gemtexter'; |
