Add get IP script

This commit is contained in:
Keith Whyte 2021-06-01 01:28:29 +02:00
parent 9240f6c523
commit 79c4da8bd0
3 changed files with 15 additions and 0 deletions

View file

@ -84,6 +84,7 @@ class rhizo_base {
$ssh_addr = hiera('rhizo::ssh_t_address','127.0.0.1')
$ssh_user = hiera('rhizo::ssh_user','')
$ssh_p = split($vpn_ip_address, '\.')[3]
$protokol_pub_ip = hiera('rhizo::protokol_pub_ip','')
$stats_disk = hiera('rhizo::stats_disk','sda1')
$stats_if = hiera('rhizo::stats_if','eth0')
@ -275,6 +276,12 @@ schedule { 'never':
purge => false,
}
file { '/home/rhizomatica/bin/get_ip.sh':
ensure => present,
content => template('rhizo_base/get_ip.sh.erb'),
group => 'rhizomatica'
}
file { '/home/rhizomatica/bin/monitor_amp.sh':
ensure => present,
source => "puppet:///modules/rhizo_base/monitor_amp.sh.${bts_amps}",