Don't create unusable osmo-bsc config with bts-type unknown
This commit is contained in:
parent
055a522b12
commit
c7529d826b
1 changed files with 10 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue