Always install and run osmo-sgsn

The old (soon to be removed) openbsc class installed
the osmo-sgsn dependent on a config parameter. Leave the config
param as a possibility to be set to 'disabled', but otherwise
install and run the sgsn.

Prevent errors output from cron jobs trying access the sgsn vty
This commit is contained in:
Keith Whyte 2020-10-05 17:57:05 +02:00
parent 1411dbc968
commit c564e17097

View file

@ -96,6 +96,12 @@ class rhizo_base::openbsc {
require => Package['osmo-sip-connector'],
}
service { 'osmo-sgsn':
enable => true,
ensure => running,
require => Package['osmo-sgsn'],
}
file { '/usr/local/bin/vty':
source => 'puppet:///modules/rhizo_base/vty',
owner => 'root',
@ -123,7 +129,7 @@ class rhizo_base::openbsc {
require => Package['osmo-sip-connector'],
}
if ($gprs == "active") {
if ($gprs != "disabled") {
file { '/etc/osmocom/make_sgsn_acl_config':
content => template('rhizo_base/make_sgsn_acl_config.erb'),
mode => "0750",