Add osmo stack script

This commit is contained in:
Monocots 2022-11-18 23:21:57 +00:00
parent f709539b0b
commit e62004d62c
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/bin/bash
if [ "$1" == "" ] ; then
_cmd="status"
else
_cmd=$1
fi
systemctl $_cmd osmo-stp osmo-bsc osmo-msc osmo-hlr osmo-mgw osmo-mgw-msc osmo-sgsn osmo-sip-connector

View file

@ -128,6 +128,11 @@ class rhizo_base::osmocom::common {
# but with the service outage that restarting the split stack entails, # but with the service outage that restarting the split stack entails,
# I don't want to even give puppet the possibility to do that. # I don't want to even give puppet the possibility to do that.
file { '/etc/osmocom/stack':
source => 'puppet:///modules/rhizo_base/stack',
owner => 'root',
mode => '0750',
}
file { '/etc/osmocom/osmo-stp.cfg': file { '/etc/osmocom/osmo-stp.cfg':
content => template('rhizo_base/osmo-stp.cfg.erb'), content => template('rhizo_base/osmo-stp.cfg.erb'),