diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-12-26 19:17:14 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-12-26 19:17:14 -0200 |
commit | 51792f6e4683c7609c798dd1039251354dead110 (patch) | |
tree | 8ca3c63efce7eb84c7afa8d590542a938c91e66f /manifests | |
parent | c6d0999167bac7a76c51985fcc6514404dfadd8a (diff) | |
download | puppet-apache-51792f6e4683c7609c798dd1039251354dead110.tar.gz puppet-apache-51792f6e4683c7609c798dd1039251354dead110.tar.bz2 |
Testing site ignoring source parameter
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 2167bbb..a09b6ad 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", |