Instal sgsn, script to gen sgsn config

This commit is contained in:
Monocots 2019-06-24 16:02:22 +00:00
parent 07d3d84c5f
commit 93a81c0bbf
2 changed files with 58 additions and 0 deletions

View file

@ -31,6 +31,8 @@ class rhizo_base::openbsc {
$smpp_password = $rhizo_base::smpp_password
$mncc_codec = $rhizo_base::mncc_codec
$gprs = $rhizo_base::gprs
$vpn_ip_address = hiera('rhizo::vpn_ip_address')
$ggsn_ip_address = hiera('rhizo::ggsn_ip_address')
package { [ 'osmocom-nitb' ]:
ensure => '1.2.0',
@ -42,6 +44,7 @@ class rhizo_base::openbsc {
package { [ 'osmo-bsc-meas-utils' ]:
ensure => 'installed'
}
if $mncc_codec == "AMR" {
$phys_chan = "TCH/H"
} else {
@ -66,6 +69,17 @@ class rhizo_base::openbsc {
}
}
if ($gprs == "active") {
file { '/etc/osmocom/make_sgsn_acl_config':
content => template('rhizo_base/make_sgsn_acl_config.erb'),
mode => "0750",
}
package { [ 'osmo-sgsn' ]:
ensure => 'installed',
require => Class['rhizo_base::apt'],
}
}
exec { 'hlr_pragma_wal':
command =>
'/usr/bin/sqlite3 /var/lib/osmocom/hlr.sqlite3 "PRAGMA journal_mode=wal;"',