Modifications to Split Stack Config

Setup params needed for dGSM
This commit is contained in:
Keith Whyte 2021-03-01 12:09:43 +01:00
parent 1176683f7c
commit f14e2c7a04
6 changed files with 38 additions and 3 deletions

View file

@ -0,0 +1,10 @@
#!/bin/sh
/sbin/ip route show 239.192.23.42 | grep rhizomatica > /dev/null
if [ $? -ne 0 ]; then
/sbin/ip route add 239.192.23.42 dev rhizomatica
if [ $? -ne 0 ]; then
exit 1
fi
exit 0
fi

View file

@ -0,0 +1,2 @@
[Service]
ExecStartPre=/bin/sh -c /etc/tinc/check_mdns_route

View file

@ -27,7 +27,11 @@ class rhizo_base::osmocom {
$sgsn_ip_address = hiera('rhizo::sgsn_ip_address') $sgsn_ip_address = hiera('rhizo::sgsn_ip_address')
$ggsn_ip_address = hiera('rhizo::ggsn_ip_address') $ggsn_ip_address = hiera('rhizo::ggsn_ip_address')
$repo = hiera('rhizo::osmo_repo', 'latest') $repo = hiera('rhizo::osmo_repo', 'latest')
$hlr_name = hiera('rhizo::hlr_name', $network_name) $ipa_name = hiera('rhizo::ipa_name',
sprintf("%s-%s-%s-%s", $mcc, $mnc, $bts[0]['lac'],
regsubst($vpn_ip_address,
'^(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)$',
'\\3-\\4')))
package { [ 'osmo-stp', 'osmo-mgw', 'osmo-sgsn' ]: package { [ 'osmo-stp', 'osmo-mgw', 'osmo-sgsn' ]:
ensure => 'installed', ensure => 'installed',
@ -150,6 +154,19 @@ class rhizo_base::osmocom {
source => 'puppet:///modules/rhizo_base/systemd/osmo-msc.override' source => 'puppet:///modules/rhizo_base/systemd/osmo-msc.override'
} }
systemd::dropin_file { 'hlr-override':
unit => 'osmo-hlr.service',
filename => 'override.conf',
source => 'puppet:///modules/rhizo_base/systemd/osmo-hlr.override'
}
file { '/etc/tinc/check_mdns_route':
ensure => present,
source => 'puppet:///modules/rhizo_base/check_mdns_route',
mode => '0750'
}
file { '/lib/systemd/system/osmo-mgw-msc.service': file { '/lib/systemd/system/osmo-mgw-msc.service':
ensure => present, ensure => present,
source => 'puppet:///modules/rhizo_base/systemd/osmo-mgw-msc.service', source => 'puppet:///modules/rhizo_base/systemd/osmo-mgw-msc.service',

View file

@ -88,7 +88,7 @@
phys_chan_config <%= @phys_chan %> phys_chan_config <%= @phys_chan %>
hopping enabled 0 hopping enabled 0
timeslot 3 timeslot 3
phys_chan_config TCH/F_TCH/H_PDCH phys_chan_config <%= @phys_chan %>
hopping enabled 0 hopping enabled 0
timeslot 4 timeslot 4
phys_chan_config TCH/F_TCH/H_PDCH phys_chan_config TCH/F_TCH/H_PDCH

View file

@ -47,7 +47,7 @@ hlr
database <%= @hlr_db %> database <%= @hlr_db %>
gsup gsup
bind ip <%= @vpn_ip_address %> bind ip <%= @vpn_ip_address %>
ipa-name <%= @hlr_name %> ipa-name HLR-<%= @ipa_name %>
ussd route prefix *#100# internal own-msisdn ussd route prefix *#100# internal own-msisdn
ussd route prefix *#101# internal own-imsi ussd route prefix *#101# internal own-imsi
mslookup mslookup
@ -57,4 +57,9 @@ mslookup
service smpp.sms at <%= @vpn_ip_address %> 2775 service smpp.sms at <%= @vpn_ip_address %> 2775
client client
mdns bind 239.192.23.42 4266 mdns bind 239.192.23.42 4266
!
! Can't have create on demand and client at
! same time, so we turn off client here.
!!
no client
end end

View file

@ -98,6 +98,7 @@ smpp
hlr hlr
remote-ip <%= @vpn_ip_address %> remote-ip <%= @vpn_ip_address %>
remote-port 4222 remote-port 4222
ipa-name MSC-<%= @ipa_name %>
sgs sgs
local-port 29118 local-port 29118
local-ip 0.0.0.0 local-ip 0.0.0.0