Adding skeleton test file to BTS scripts

This commit is contained in:
Keith Whyte 2020-04-29 03:48:57 +02:00
parent bd8f00a3d0
commit 3becae1f23
2 changed files with 30 additions and 1 deletions

View 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

View file

@ -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':