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:
parent
a343b814f1
commit
bde8895505
@ -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],
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user