summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Krum <nibz@spencerkrum.com>2015-08-25 11:52:02 -0700
committerSpencer Krum <nibz@spencerkrum.com>2015-09-25 12:21:31 -0700
commit5b0ebdf5558ccf80a6126bd7d06c26b03539d404 (patch)
tree84d8968321d1c5164dd1cf2b4bba7aae17a2c0d1
parent2016285e715432a7c1ddadb815b0700691fa76eb (diff)
Create a httpd::mod defined type
This allows for before => Service['httpd'] on every resource without being explicit. Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com> Co-Authored-By: Glauco Oliveira <gvinici@thoughtworks.com> Change-Id: I0e991a7a63317e608cc6ef35b58dc79b518ba863
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Clark Boylan <cboylan@sapwetik.org> Code-Review+2: yolanda.robla <info@ysoft.biz> Workflow+1: yolanda.robla <info@ysoft.biz> Code-Review+1: Colleen Murphy <colleen@gazlene.net> Submitted-by: Jenkins Submitted-at: Mon, 28 Sep 2015 17:31:07 +0000 Reviewed-on: https://review.openstack.org/216835 Project: openstack-infra/puppet-httpd Branch: refs/heads/master
-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}