The last commit only for nightly

This commit is contained in:
Keith Whyte 2021-02-27 05:59:36 +01:00
parent be4597d985
commit 4bb2d2e99d

View file

@ -138,11 +138,6 @@ class rhizo_base::openbsc {
mode => "0750",
}
file { '/etc/osmocom/osmo-sgsn.cfg':
content => template('rhizo_base/osmo-sgsn-ns1.cfg.erb'),
mode => "0750",
notify => Service['osmo-sgsn'],
}
systemd::dropin_file { 'override.conf':
unit => 'osmo-sgsn.service',
@ -155,6 +150,18 @@ class rhizo_base::openbsc {
default => 'installed',
}
$sgsn_cfg_file = $repo ? {
'latest' => '-ns1',
'nightly' => '',
default => '',
}
file { '/etc/osmocom/osmo-sgsn.cfg':
content => template("rhizo_base/osmo-sgsn$sgsn_cfg_file.cfg.erb"),
mode => "0750",
notify => Service['osmo-sgsn'],
}
package { [ 'osmo-sgsn' ]:
ensure => $sgsn_version,
require => Class['rhizo_base::apt'],