From ef5041505454fadf2a3dcdf77859eec114016568 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Wed, 6 Mar 2019 13:28:41 +0000 Subject: [PATCH] osmo: make writing osmo config depend on param --- modules/rhizo_base/manifests/openbsc.pp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/rhizo_base/manifests/openbsc.pp b/modules/rhizo_base/manifests/openbsc.pp index 5c1016a..b00b3ca 100644 --- a/modules/rhizo_base/manifests/openbsc.pp +++ b/modules/rhizo_base/manifests/openbsc.pp @@ -41,11 +41,13 @@ class rhizo_base::openbsc { require => Package['osmocom-nitb'], } - file { '/etc/osmocom/osmo-nitb.cfg': - content => template('rhizo_base/osmo-nitb.cfg.erb'), - require => Package['osmocom-nitb'], - notify => Exec['notify-nitb'], - } + unless hiera('rhizo::local_bsc_cfg') == "1" { + file { '/etc/osmocom/osmo-nitb.cfg': + content => template('rhizo_base/osmo-nitb.cfg.erb'), + require => Package['osmocom-nitb'], + notify => Exec['notify-nitb'], + } + } exec { 'hlr_pragma_wal': command =>