summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp30
1 files changed, 15 insertions, 15 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index a09b6ad..2167bbb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -87,19 +87,19 @@ class apache {
$server_alias = false, $use = false, $ticket = false,
$source = false) {
- # case $source {
- # true: {
- # file { "${apache2_sites}-available/$title":
- # ensure => $ensure,
- # source => "puppet://$server/files/apache/$name",
- # owner => root,
- # group => root,
- # mode => 0644,
- # require => File["${apache2_macros}"],
- # notify => Service["apache"],
- # }
- # }
- # false: {
+ case $source {
+ true: {
+ file { "${apache2_sites}-available/$title":
+ ensure => $ensure,
+ source => "puppet://$server/files/apache/$name",
+ owner => root,
+ group => root,
+ mode => 0644,
+ require => File["${apache2_macros}"],
+ notify => Service["apache"],
+ }
+ }
+ false: {
file { "${apache2_sites}-available/$title":
ensure => $ensure,
content => template('apache/site.erb'),
@@ -109,8 +109,8 @@ class apache {
require => File["${apache2_macros}"],
notify => Service["apache"],
}
- # }
- # }
+ }
+ }
$status = $ensure ? {
'present' => "${apache2_sites}-available/$title",