From f5b30c26a97866e91150899c7f6954ea6b8d7684 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Fri, 13 Nov 2020 19:12:15 +0100 Subject: [PATCH] Remove runit service link for sip connector split stack --- modules/rhizo_base/manifests/runit.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/rhizo_base/manifests/runit.pp b/modules/rhizo_base/manifests/runit.pp index 14b30d7..80726a2 100644 --- a/modules/rhizo_base/manifests/runit.pp +++ b/modules/rhizo_base/manifests/runit.pp @@ -67,8 +67,13 @@ class rhizo_base::runit { require => [ File['/etc/sv'] ], } + $_runit_sip_con = $osmo_stack ? { + 'split' => absent, + 'nitb' => link + } + file { '/etc/service/osmo-sip-connector': - ensure => link, + ensure => $_runit_sip_con, target => '/etc/sv/osmo-sip-connector', require => [ File['/etc/sv'] ], }