Add an rc.local
Globally disable IPv6 and get IP addresses for the monitor.
This commit is contained in:
parent
71282c0e7d
commit
cf353bc8cd
2 changed files with 13 additions and 0 deletions
7
modules/rhizo_base/files/rc.local
Normal file
7
modules/rhizo_base/files/rc.local
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
/home/rhizomatica/bin/get_ip.sh
|
||||||
|
|
||||||
|
sysctl net.ipv6.conf.all.disable_ipv6=1
|
||||||
|
|
||||||
|
exit 0
|
|
@ -12,6 +12,12 @@ class rhizo_base::misc {
|
||||||
recurse => remote,
|
recurse => remote,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/rc.local':
|
||||||
|
ensure => present,
|
||||||
|
source => 'puppet:///modules/rhizo_base/rc.local',
|
||||||
|
mode => '0755'
|
||||||
|
}
|
||||||
|
|
||||||
$bot_alert_url = hiera('rhizo::alert_url')
|
$bot_alert_url = hiera('rhizo::alert_url')
|
||||||
|
|
||||||
file { '/usr/local/bin/alert.sh':
|
file { '/usr/local/bin/alert.sh':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue