Add param for sysmoBTS amps on/off
This is for the sysmoBTS 2050
This commit is contained in:
parent
bca9ccae5d
commit
55df1a8d4f
3 changed files with 17 additions and 0 deletions
11
modules/rhizo_base/files/monitor_amp.sh.off
Executable file
11
modules/rhizo_base/files/monitor_amp.sh.off
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
RHIZO_SCRIPT="/home/rhizomatica/bin"
|
||||
. $RHIZO_SCRIPT/vars.sh
|
||||
LOGFILE="/var/log/monitor_amp.log"
|
||||
|
||||
$RHIZO_SCRIPT/check_amp_status.sh | grep -q ON
|
||||
if [ $? == 0 ]; then
|
||||
logc "Amplifier is ON! Turn off amp"
|
||||
$RHIZO_SCRIPT/turn_off_amplifier.sh >/dev/null 2>&1
|
||||
logc 'Procedure completed'
|
||||
fi
|
|
@ -46,6 +46,7 @@ class rhizo_base {
|
|||
|
||||
#BTSs configuration
|
||||
$bts_type = hiera('rhizo::bts_type')
|
||||
$bts_amps = hiera('rhizo::bts_amps', "on")
|
||||
$bts1_ip_address = hiera('rhizo::bts1_ip_address')
|
||||
$arfcn_A = hiera('rhizo::arfcn_A')
|
||||
$arfcn_B = hiera('rhizo::arfcn_B', false)
|
||||
|
@ -253,6 +254,11 @@ schedule { 'repo':
|
|||
purge => false,
|
||||
}
|
||||
|
||||
file { '/home/rhizomatica/bin/monitor_amp.sh':
|
||||
ensure => present,
|
||||
source => "puppet:///modules/rhizo_base/monitor_amp.sh.${bts_amps}",
|
||||
}
|
||||
|
||||
file { '/home/rhizomatica/bin/monitor_freeswitch.sh':
|
||||
ensure => present,
|
||||
content => template('rhizo_base/monitor_freeswitch.sh.erb'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue