diff options
| author | alex <alex@pdp7.net> | 2023-10-14 14:09:48 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-14 14:09:48 +0200 |
| commit | 7fde74c5f7c2233f2c2612479e6c1c35dc59e6a2 (patch) | |
| tree | cbce1f670bfa76d7332beb823579775728394093 /personal_infra/puppet/modules/freeswitch/manifests | |
| parent | 6868ba7f265e3f86bd31cb60b1299179e5175752 (diff) | |
Configure freeswitch
Diffstat (limited to 'personal_infra/puppet/modules/freeswitch/manifests')
| -rw-r--r-- | personal_infra/puppet/modules/freeswitch/manifests/init.pp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/personal_infra/puppet/modules/freeswitch/manifests/init.pp b/personal_infra/puppet/modules/freeswitch/manifests/init.pp new file mode 100644 index 00000000..4ebdf3a2 --- /dev/null +++ b/personal_infra/puppet/modules/freeswitch/manifests/init.pp @@ -0,0 +1,24 @@ +class freeswitch($freeswitch_password, $freeswitch_address, $freeswitch_rtp_start_port, $freeswitch_rtp_end_port) { + package {'okay-release': + source => 'http://repo.okay.com.mx/centos/9/x86_64/release/okay-release-1-9.el9.noarch.rpm', + } + -> + package {['freeswitch-config-vanilla', 'freeswitch-systemd', 'freeswitch-sounds-en-us-callie-all']:} + -> + service {'freeswitch': + enable => true, + ensure => running, + } + + file {'/etc/freeswitch/vars.xml': + content => template('freeswitch/vars.xml'), + require => Package['freeswitch-config-vanilla'], + notify => Service['freeswitch'], + } + + file {'/etc/freeswitch/autoload_configs/switch.conf.xml': + content => template('freeswitch/switch.conf.xml'), + require => Package['freeswitch-config-vanilla'], + notify => Service['freeswitch'], + } +} |
