Merge "Create a httpd::mod defined type"

This commit is contained in:
Jenkins 2015-09-28 17:31:07 +00:00 committed by Gerrit Code Review
commit d3261cdc81
1 changed files with 17 additions and 0 deletions

17
manifests/mod.pp Normal file
View File

@ -0,0 +1,17 @@
# defined type to wrap httpd_mod
# httpd_mod doesn't ensure that the service is up first, this does
define httpd::mod (
$ensure = present,
) {
if $::osfamily == 'Debian' {
httpd_mod { $name:
ensure => $ensure,
notify => Service['httpd'],
}
}
if $::osfamily == 'RedHat' {
debug('Enabling modules is a noop on redhat, doing nothing')
}
}