Defined Type: asterisk::feature

Defined in:
manifests/feature.pp

Summary

Configure an asterisk feature application map grouping

Overview

This resource will define an application map grouping. It can be used to set dynamic features with the DYNAMIC_FEATURES variable: instead of listing all of the application maps that need to be enabled in DYNAMIC_FEATURES, you can use the name of a group to enable them all.

To configure global features, see the features_general parameter to the main class, asterisk.

TODO:

list specific options as params instead of using an options hash

Examples:

feature configuration

asterisk::feature { 'shifteight':
  options => {
    unpauseMonitor => '*1',
    pauseMonitor   => '*2',
  }
}

Parameters:

  • options (Hash)

    Hash of options with keys being option names and values their values.

  • ensure (Any) (defaults to: present)

    Set this to absent to remove the feature.

See Also:



29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'manifests/feature.pp', line 29

define asterisk::feature (
  Hash $options,
  $ensure = present
) {

  asterisk::dotd::file { "featuremap_group_${name}.conf":
    ensure   => $ensure,
    dotd_dir => 'features.d',
    content  => template('asterisk/snippet/feature.erb'),
    filename => "${name}.conf",
  }

}