benlangfeld / freeswitch-cookbook

Chef cookbook to install FreeSWITCH
24 stars 17 forks source link

FreeSWITCH cookbook

This Chef cookbook installs FreeSWITCH either from source or packages and configures its basic settings. It is intended that this cookbook remain small and perform only installation tasks, with downstream cookbooks depending on it to configure FreeSWITCH for more specific tasks.

Requirements

Tested on Ubuntu 12.04, Debian 7.1 and CentOS 6.5.

Usage

Add recipe[freeswitch] to your node's run list

Attributes

Package install attributes

Source install attributes

Recipes

Resources/Providers

freeswitch_user

This LWRP provides an easy way to manage FreeSWITCH users (directory entries). FreeSWITCH XML config will be reloaded after a run which manipulates users.

Actions

Attribute Parameters

Examples

Add the joebloggs user:

freeswitch_user 'joebloggs'

Add a user specifying all the possible attributes:

freeswitch_user 'joebloggs' do |variable|
  directory 'default'
  password 'foobar'
  vm_password 'barbaz'
  effective_caller_id_name 'Joe Bloggs'
  effective_caller_id_number 'joe@bloggs.com'
  cookbook 'my-wrapper-cookbook'
  template 'freeswitch-user.xml.erb'
end

Remove the joebloggs user:

freeswitch_user 'joebloggs' do
  action :remove
end

Author

Ben Langfeld