summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-28 17:31:07 +0000
committerGerrit Code Review <review@openstack.org>2015-09-28 17:31:07 +0000
commitd3261cdc81de601644749063ef4830cb52a244a8 (patch)
tree5bf0db285daa5ed40f43d184a4da62802692a5ef
parentf0d478b4f9a64ade24ed3b1ee6123607268ea52e (diff)
parent5b0ebdf5558ccf80a6126bd7d06c26b03539d404 (diff)
Merge "Create a httpd::mod defined type"
-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}