1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'manifests/enablemodule.pp', line 1
define php::enablemodule (
$instance,
$ensure = 'link',
$modulename = $name,
$confbase = $php::params::confbase,
$service_notify = undef,
$priority = '99',
) {
if($service_notify!=undef)
{
$service_to_notify=Service[$service_notify]
}
else
{
$service_to_notify=undef
}
file { "${confbase}/${instance}/conf.d/${priority}-${modulename}.ini":
ensure => $ensure,
target => "${confbase}/mods-available/${$modulename}.ini",
force => true,
notify => $service_to_notify,
}
}
|