summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-04-18 16:36:48 -0400
committerMicah Anderson <micah@riseup.net>2013-04-18 16:36:48 -0400
commit688f07793a72ba4453f6663b6d19fe6388ba382f (patch)
treec6fde62a28eadf5052d6e7c144aa51f2e55413db /manifests
parent6844258b567b5065f5488a12f3f18208ff36ecb0 (diff)
add a 'ssl' parameter, so you do not need to include two classes to get ssl
support, you can simply just pass the 'ssl => true'. this may also help the occasional warning: warning: Scope(Class[Apache::Ssl]): Could not look up qualified variable 'apache::manage_shorewall'; class apache has not been evaluated at /srv/leap/puppet/modules/apache/manifests/ssl.pp:10
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 574c212..542e7aa 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -17,7 +17,8 @@ class apache(
$cluster_node = '',
$manage_shorewall = false,
$manage_munin = false,
- $no_default_site = false
+ $no_default_site = false,
+ $ssl = false
) {
case $::operatingsystem {
centos: { include apache::centos }
@@ -32,5 +33,8 @@ class apache(
if $apache::manage_shorewall {
include shorewall::rules::http
}
+ if $ssl {
+ include apache::ssl
+ }
}