summaryrefslogtreecommitdiff
path: root/manifests/mod.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/mod.pp')
-rw-r--r--manifests/mod.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/mod.pp b/manifests/mod.pp
new file mode 100644
index 0000000..eaa6069
--- /dev/null
+++ b/manifests/mod.pp
@@ -0,0 +1,17 @@
1# defined type to wrap httpd_mod
2# httpd_mod doesn't ensure that the service is up first, this does
3define httpd::mod (
4 $ensure = present,
5) {
6
7 if $::osfamily == 'Debian' {
8 httpd_mod { $name:
9 ensure => $ensure,
10 notify => Service['httpd'],
11 }
12 }
13 if $::osfamily == 'RedHat' {
14 debug('Enabling modules is a noop on redhat, doing nothing')
15 }
16
17}