Adding skeleton test file to BTS scripts
This commit is contained in:
parent
bd8f00a3d0
commit
3becae1f23
2 changed files with 30 additions and 1 deletions
21
modules/rhizo_base/files/var/SysmoBTS/check.sh
Normal file
21
modules/rhizo_base/files/var/SysmoBTS/check.sh
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec 2> /dev/null
|
||||||
|
|
||||||
|
SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
|
||||||
|
. /home/rhizomatica/bin/vars.sh
|
||||||
|
|
||||||
|
|
||||||
|
for bts in "${!BTS[@]}" ; do
|
||||||
|
|
||||||
|
if [ "$(ssh $SSH_OPTS ${BTS[$bts]} sysmobts-util trx-nr)" == "0" ] ; then
|
||||||
|
# Master Verified.
|
||||||
|
echo "BTS $bts is a 2050 Master"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$(ssh $SSH_OPTS ${BTS[$bts]} sysmobts-util trx-nr)" == "1" ] ; then
|
||||||
|
# Slave Verified.
|
||||||
|
echo "BTS $bts is a 2050 Slave"
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
|
@ -479,8 +479,16 @@ schedule { 'repo':
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/var/SysmoBTS':
|
file { '/var/SysmoBTS':
|
||||||
ensure => present,
|
ensure => directory,
|
||||||
source => 'puppet:///modules/rhizo_base/var/SysmoBTS',
|
source => 'puppet:///modules/rhizo_base/var/SysmoBTS',
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
recurse => remote
|
||||||
|
}
|
||||||
|
|
||||||
|
file { '/var/SysmoBTS/check.sh':
|
||||||
|
source => 'puppet:///modules/rhizo_base/var/SysmoBTS/check.sh',
|
||||||
|
mode => '0750'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/var/log/rccn':
|
file { '/var/log/rccn':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue