Don't create unusable osmo-bsc config with bts-type unknown

This commit is contained in:
Keith Whyte 2023-07-27 18:36:05 +02:00
parent 055a522b12
commit c7529d826b

View file

@ -109,6 +109,14 @@ class rhizo_base::osmocom::common {
}
unless hiera('rhizo::local_osmobsc_cfg') == "1" {
if ($bts[0]['type'] == "unknown") {
file { '/etc/osmocom/osmo-bsc.cfg':
ensure => file,
content => template(
'rhizo_base/osmo-bsc-head.erb',
'rhizo_base/osmo-bsc-tail.erb'),
}
} else {
file { '/etc/osmocom/osmo-bsc.cfg':
ensure => file,
content => template(
@ -118,6 +126,7 @@ class rhizo_base::osmocom::common {
notify => Exec['notify-osmo-restart'],
}
}
}
file { '/etc/osmocom/stack':
source => 'puppet:///modules/rhizo_base/stack',