From 8d94ac44abd107222c6d1ac76087bbe71e761fa0 Mon Sep 17 00:00:00 2001 From: "Wile E. Coyote" Date: Fri, 16 Nov 2018 18:33:00 +0000 Subject: [PATCH] FreeSwitch: Convert modules.conf.xml to a template --- modules/rhizo_base/manifests/freeswitch.pp | 9 +++++++++ .../modules.conf.xml => templates/modules.conf.xml.erb} | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) rename modules/rhizo_base/{files/etc/freeswitch/autoload_configs/modules.conf.xml => templates/modules.conf.xml.erb} (99%) diff --git a/modules/rhizo_base/manifests/freeswitch.pp b/modules/rhizo_base/manifests/freeswitch.pp index 11f5802..48254b2 100644 --- a/modules/rhizo_base/manifests/freeswitch.pp +++ b/modules/rhizo_base/manifests/freeswitch.pp @@ -33,6 +33,10 @@ class rhizo_base::freeswitch::ubuntu inherits rhizo_base::freeswitch::common { require => Package['freeswitch'] } + file { '/etc/freeswitch/autoload_configs/modules.conf.xml': + content => template('rhizo_base/modules.conf.xml.erb'), + require => Package['freeswitch'], + } } class rhizo_base::freeswitch::debian inherits rhizo_base::freeswitch::common { @@ -50,6 +54,11 @@ class rhizo_base::freeswitch::debian inherits rhizo_base::freeswitch::common { require => Package['freeswitch'], } + file { '/etc/freeswitch/autoload_configs/modules.conf.xml': + content => template('rhizo_base/modules.conf.xml.erb'), + require => Package['freeswitch'], + } + file { '/etc/default/freeswitch': source => 'puppet:///modules/rhizo_base/etc/default/freeswitch', require => Package['freeswitch'], diff --git a/modules/rhizo_base/files/etc/freeswitch/autoload_configs/modules.conf.xml b/modules/rhizo_base/templates/modules.conf.xml.erb similarity index 99% rename from modules/rhizo_base/files/etc/freeswitch/autoload_configs/modules.conf.xml rename to modules/rhizo_base/templates/modules.conf.xml.erb index c360888..fccd6ea 100644 --- a/modules/rhizo_base/files/etc/freeswitch/autoload_configs/modules.conf.xml +++ b/modules/rhizo_base/templates/modules.conf.xml.erb @@ -86,7 +86,7 @@ - +