Add an rc.local

Globally disable IPv6 and get IP addresses for the monitor.
This commit is contained in:
Keith Whyte 2021-06-22 20:20:18 +02:00
parent 71282c0e7d
commit cf353bc8cd
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/bin/sh -e
/home/rhizomatica/bin/get_ip.sh
sysctl net.ipv6.conf.all.disable_ipv6=1
exit 0

View file

@ -12,6 +12,12 @@ class rhizo_base::misc {
recurse => remote,
}
file { '/etc/rc.local':
ensure => present,
source => 'puppet:///modules/rhizo_base/rc.local',
mode => '0755'
}
$bot_alert_url = hiera('rhizo::alert_url')
file { '/usr/local/bin/alert.sh':