From b678d91563534721444f4ad90e45d1e1dfb7d466 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Tue, 10 Jan 2023 00:48:41 +0100 Subject: [PATCH] Update osmo-hlr Also restart the service on package update --- modules/rhizo_base/manifests/osmocom.pp | 13 ++++++++++--- modules/rhizo_base/templates/osmo-hlr.cfg.erb | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/modules/rhizo_base/manifests/osmocom.pp b/modules/rhizo_base/manifests/osmocom.pp index 6900e37..42f2279 100644 --- a/modules/rhizo_base/manifests/osmocom.pp +++ b/modules/rhizo_base/manifests/osmocom.pp @@ -34,7 +34,7 @@ class rhizo_base::osmocom::buster inherits rhizo_base::osmocom::common { } package { [ 'osmo-hlr', 'libosmo-mslookup0', 'osmo-mslookup-utils', 'libosmo-gsup-client0' ]: - ensure => '1.5.0+rhizo4b', + ensure => '1.5.0+rhizo5b', require => Class['rhizo_base::apt'], } } @@ -62,7 +62,7 @@ class rhizo_base::osmocom::stretch inherits rhizo_base::osmocom::common { } package { [ 'osmo-hlr', 'libosmo-mslookup0', 'osmo-mslookup-utils', 'libosmo-gsup-client0' ]: - ensure => '1.5.0+rhizo4s', + ensure => '1.5.0+rhizo5s', require => Class['rhizo_base::apt'], } } @@ -212,7 +212,14 @@ class rhizo_base::osmocom::common { target => '../../python3/dist-packages/osmopy' } - service { [ 'osmo-stp', 'osmo-hlr', 'osmo-bsc', + service { 'osmo-hlr': + provider => 'systemd', + enable => true, + ensure => 'running', + subscribe => Package['osmo-hlr'], + } + + service { [ 'osmo-stp', 'osmo-bsc', 'osmo-msc', 'osmo-mgw', 'osmo-sgsn', 'osmo-sip-connector' ]: provider => 'systemd', diff --git a/modules/rhizo_base/templates/osmo-hlr.cfg.erb b/modules/rhizo_base/templates/osmo-hlr.cfg.erb index 70b36c4..31f6dd6 100644 --- a/modules/rhizo_base/templates/osmo-hlr.cfg.erb +++ b/modules/rhizo_base/templates/osmo-hlr.cfg.erb @@ -62,6 +62,7 @@ mslookup mdns bind 239.192.23.42 4266 service sip.voice at <%= @vpn_ip_address %> 5060 service smpp.sms at <%= @vpn_ip_address %> 2775 + max-age 14400 client mdns bind 239.192.23.42 4266 timeout 1500