From e62004d62ce3f5c3758f1dd24f79d7997670cd8f Mon Sep 17 00:00:00 2001 From: Monocots Date: Fri, 18 Nov 2022 23:21:57 +0000 Subject: [PATCH] Add osmo stack script --- modules/rhizo_base/files/stack | 7 +++++++ modules/rhizo_base/manifests/osmocom.pp | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 modules/rhizo_base/files/stack diff --git a/modules/rhizo_base/files/stack b/modules/rhizo_base/files/stack new file mode 100644 index 0000000..9e4b656 --- /dev/null +++ b/modules/rhizo_base/files/stack @@ -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 diff --git a/modules/rhizo_base/manifests/osmocom.pp b/modules/rhizo_base/manifests/osmocom.pp index 61d4e94..3ad8850 100644 --- a/modules/rhizo_base/manifests/osmocom.pp +++ b/modules/rhizo_base/manifests/osmocom.pp @@ -128,6 +128,11 @@ class rhizo_base::osmocom::common { # but with the service outage that restarting the split stack entails, # 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': content => template('rhizo_base/osmo-stp.cfg.erb'),