Invert modules.conf logic

Rather then autoloading everything, we explicitly load what we need.  I
find this give the user better control of what is installed by default.

Additionally, upstream (my) puppet modules will likely expect this.

Change-Id: Ib572c54053bd5b5f9a3a513f6f8696db87ea0864
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
This commit is contained in:
Paul Belanger 2013-07-26 13:17:55 +00:00
parent a343b814f1
commit bde8895505
2 changed files with 3 additions and 4 deletions

View File

@ -37,10 +37,7 @@ define asterisk::function::customdir(
notify => Exec["asterisk-module-reload-${name}"],
purge => true,
recurse => true,
require => [
File[$basedir],
Service['asterisk'],
]
require => File[$basedir],
}
}

View File

@ -183,8 +183,10 @@ class asterisk::server::command {
refreshonly => true,
}
# Force asterisk to restart to load / unload modules.
exec { 'asterisk-module-reload-modules.conf':
command => '/bin/true',
notify => Service['asterisk'],
refreshonly => true,
}