diff options
| author | Paul Buetow <paul@buetow.org> | 2022-04-14 19:18:12 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-04-14 19:18:12 +0100 |
| commit | 7c121d29eb036e29a7c6c94361002a9a2e2bd146 (patch) | |
| tree | cd323bef2501149369c9a8467e71533c7b94f3eb /openbsd/frontends/Rexfile | |
| parent | 3ba81b44973475765bb2bc7000d8d5cc9b38ec1a (diff) | |
more on ha.pl
Diffstat (limited to 'openbsd/frontends/Rexfile')
| -rw-r--r-- | openbsd/frontends/Rexfile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/openbsd/frontends/Rexfile b/openbsd/frontends/Rexfile index 8f95339..870c34b 100644 --- a/openbsd/frontends/Rexfile +++ b/openbsd/frontends/Rexfile @@ -7,7 +7,6 @@ group dnsslaves => 'twofish.buetow.org'; user 'rex'; sudo TRUE; -sudo_password read_file "$ENV{'HOME'}/.ssh/rex_password"; parallelism 5; @@ -31,20 +30,28 @@ desc 'Setup inetd'; task 'inetd', group => 'frontends', sub { file '/etc/inetd.conf', - source => "./etc/inetd.conf", + source => './etc/inetd.conf', on_change => sub { service 'inetd' => 'restart'; }; + service 'inetd', ensure => 'started'; }; -desc 'Setup failover'; -task 'failover', group => 'frontends', +desc 'Setup HA'; +task 'ha', group => 'frontends', sub { file '/usr/local/bin/ha.pl', - source => "./usr/local/bin/ha.pl", + source => './usr/local/bin/ha.pl', owner => 'root', group => 'wheel', mode => '755'; + + file '/var/run/ha.status', + content => '# Initial HA status file', + owner => 'www', + group => 'wheel', + mode => '644', + no_overwrite => TRUE; }; 1; |
