Create templates for BTS config
This commit is contained in:
parent
ea47d2d229
commit
8b2e6e6eb3
4 changed files with 54 additions and 2 deletions
|
@ -18,6 +18,7 @@ for bts in "${!BTS[@]}" ; do
|
||||||
ssh $SSH_OPTS root@${BTS[$bts]} "date -s '$(date)'"
|
ssh $SSH_OPTS root@${BTS[$bts]} "date -s '$(date)'"
|
||||||
ssh $SSH_OPTS root@${BTS[$bts]} "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 9.9.9.9 >> /etc/resolv.conf"
|
ssh $SSH_OPTS root@${BTS[$bts]} "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 9.9.9.9 >> /etc/resolv.conf"
|
||||||
scp $SSH_OPTS osmo-pcu.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-pcu.cfg
|
scp $SSH_OPTS osmo-pcu.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-pcu.cfg
|
||||||
|
scp $SSH_OPTS osmo-bts_$bts.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-bts-sysmo.cfg
|
||||||
scp $SSH_OPTS pcu bts root@${BTS[$bts]}:/bin/
|
scp $SSH_OPTS pcu bts root@${BTS[$bts]}:/bin/
|
||||||
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu /bin/bts"
|
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu /bin/bts"
|
||||||
ssh $SSH_OPTS root@${BTS[$bts]} "expect -v 2>/dev/null"
|
ssh $SSH_OPTS root@${BTS[$bts]} "expect -v 2>/dev/null"
|
||||||
|
|
|
@ -40,7 +40,7 @@ class rhizo_base {
|
||||||
$network_name = hiera('rhizo::network_name')
|
$network_name = hiera('rhizo::network_name')
|
||||||
$auth_policy = hiera('rhizo::auth_policy')
|
$auth_policy = hiera('rhizo::auth_policy')
|
||||||
$lac = hiera('rhizo::lac')
|
$lac = hiera('rhizo::lac')
|
||||||
$gprs = hiera('rhizo::gprs')
|
$gprs = hiera('rhizo::gprs', 'egprs')
|
||||||
$gsm_band = hiera('rhizo::gsm_band', "GSM850")
|
$gsm_band = hiera('rhizo::gsm_band', "GSM850")
|
||||||
$mcc = hiera('rhizo::mcc', '334')
|
$mcc = hiera('rhizo::mcc', '334')
|
||||||
$mnc = hiera('rhizo::mnc', '7')
|
$mnc = hiera('rhizo::mnc', '7')
|
||||||
|
@ -81,6 +81,7 @@ class rhizo_base {
|
||||||
$mncc_ip_address = hiera('rhizo::mncc_ip_address', '172.16.0.1')
|
$mncc_ip_address = hiera('rhizo::mncc_ip_address', '172.16.0.1')
|
||||||
$vpn_ip_address = hiera('rhizo::vpn_ip_address')
|
$vpn_ip_address = hiera('rhizo::vpn_ip_address')
|
||||||
$wan_ip_address = hiera('rhizo::wan_ip_address')
|
$wan_ip_address = hiera('rhizo::wan_ip_address')
|
||||||
|
$bsc_ip_address = hiera('rhizo::bsc_ip_address', '172.16.0.1')
|
||||||
$riak_ip_address = hiera('rhizo::riak_ip_address', $vpn_ip_address)
|
$riak_ip_address = hiera('rhizo::riak_ip_address', $vpn_ip_address)
|
||||||
$sip_central_ip_address = hiera('rhizo::sip_central_ip_address')
|
$sip_central_ip_address = hiera('rhizo::sip_central_ip_address')
|
||||||
$webphone_prefix = hiera('rhizo::webphone_prefix', '[]')
|
$webphone_prefix = hiera('rhizo::webphone_prefix', '[]')
|
||||||
|
@ -507,6 +508,20 @@ schedule { 'repo':
|
||||||
recurse => remote
|
recurse => remote
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$bts.each |Integer $i, Hash $b| {
|
||||||
|
file { "/var/SysmoBTS/osmo-bts_${i}.cfg":
|
||||||
|
ensure => present,
|
||||||
|
content => template('rhizo_base/osmo-bts-sysmo.cfg.erb'),
|
||||||
|
mode => '0640',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
file { '/var/SysmoBTS/osmo-pcu.cfg':
|
||||||
|
ensure => present,
|
||||||
|
content => template('rhizo_base/osmo-pcu.cfg.erb'),
|
||||||
|
mode => '0640',
|
||||||
|
}
|
||||||
|
|
||||||
file { '/var/SysmoBTS/check.sh':
|
file { '/var/SysmoBTS/check.sh':
|
||||||
source => 'puppet:///modules/rhizo_base/var/SysmoBTS/check.sh',
|
source => 'puppet:///modules/rhizo_base/var/SysmoBTS/check.sh',
|
||||||
mode => '0750'
|
mode => '0750'
|
||||||
|
|
35
modules/rhizo_base/templates/osmo-bts-sysmo.cfg.erb
Normal file
35
modules/rhizo_base/templates/osmo-bts-sysmo.cfg.erb
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
!
|
||||||
|
! OsmoBTS () configuration saved from vty
|
||||||
|
!!
|
||||||
|
!
|
||||||
|
log stderr
|
||||||
|
logging filter all 1
|
||||||
|
logging color 1
|
||||||
|
logging print category-hex 0
|
||||||
|
logging print category 1
|
||||||
|
logging timestamp 0
|
||||||
|
logging print file 1
|
||||||
|
logging level rsl info
|
||||||
|
logging level oml info
|
||||||
|
logging level rll notice
|
||||||
|
logging level rr notice
|
||||||
|
logging level meas notice
|
||||||
|
logging level pag info
|
||||||
|
logging level l1c info
|
||||||
|
logging level l1p info
|
||||||
|
logging level dsp info
|
||||||
|
logging level abis notice
|
||||||
|
!
|
||||||
|
line vty
|
||||||
|
no login
|
||||||
|
!
|
||||||
|
phy 0
|
||||||
|
instance 0
|
||||||
|
bts 0
|
||||||
|
band <%= @bts[@i]["band"] %>
|
||||||
|
ipa unit-id 1000 <%= @bts[@i]["uid"] %>
|
||||||
|
oml remote-ip <%= @bsc_ip_address %>
|
||||||
|
rtp jitter-buffer <%= @jb_bts %>
|
||||||
|
trx 0
|
||||||
|
phy 0 instance 0
|
||||||
|
nominal-tx-power <%= @bts[@i]["nom"] %>
|
|
@ -1,5 +1,6 @@
|
||||||
pcu
|
pcu
|
||||||
egprs only
|
<% if @gprs == 'egprs' -%> egprs only
|
||||||
|
<% end -%>
|
||||||
flow-control-interval 10
|
flow-control-interval 10
|
||||||
cs 4
|
cs 4
|
||||||
alloc-algorithm dynamic
|
alloc-algorithm dynamic
|
Loading…
Add table
Add a link
Reference in a new issue