diff options
| author | Paul Buetow <paul@buetow.org> | 2023-05-05 00:20:45 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-05-05 00:20:45 +0300 |
| commit | d672f3b16f5e872da764dab2ba1e76517be2b46a (patch) | |
| tree | 57a3804fe724aaca3ac10f8fec08504927938290 /frontends/Rexfile | |
| parent | 7f99989467ff8140b7420806379d806d9055a89a (diff) | |
add habit server
Diffstat (limited to 'frontends/Rexfile')
| -rw-r--r-- | frontends/Rexfile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index 6fdfcf6..967d031 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -92,9 +92,11 @@ task 'dump_info', group => 'frontends', sub { dump_system_information }; desc 'Install base stuff'; task 'base', group => 'frontends', sub { + pkg 'figlet', ensure => present; pkg 'tig', ensure => present; pkg 'vger', ensure => present; pkg 'zsh', ensure => present; + pkg 'bash', ensure => present; my @pkg_scripts = qw/uptimed httpd dserver icinga2/; push @pkg_scripts, 'znc' if connection->server eq $ircbouncer_server; @@ -212,6 +214,12 @@ task 'inetd', group => 'frontends', sub { append_if_no_such_line '/etc/rc.conf.local', 'inetd_flags='; + file '/etc/login.conf.d/inetd', + source => './etc/login.conf.d/inetd', + owner => 'root', + group => 'wheel', + mode => '644'; + file '/etc/inetd.conf', source => './etc/inetd.conf', owner => 'root', @@ -220,6 +228,15 @@ task 'inetd', group => 'frontends', on_change => sub { service 'inetd' => 'restart' }; service 'inetd', ensure => 'started'; + + pkg 'cowsay', ensure => present; + run 'adduser -class inetd -group _habit -batch _habit', unless => 'id _habit'; + + file '/usr/local/bin/habit.pl', + source => './scripts/habit.pl', + owner => 'root', + group => 'wheel', + mode => '755'; }; desc 'Setup relayd'; |
