Add osmo stack script
This commit is contained in:
parent
f709539b0b
commit
e62004d62c
2 changed files with 12 additions and 0 deletions
7
modules/rhizo_base/files/stack
Normal file
7
modules/rhizo_base/files/stack
Normal 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
|
|
@ -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'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue