X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Fmanifests%2Fconfig.pp;h=13697cba9cfc2af3c3a1a1e36ba1f5367ead067d;hb=6f2e5fc86e49c12b12eef39fc69e0e810a32c318;hp=0bb6a6e491a49f58b1dd7418734a8503b2f1361a;hpb=9674b5ef59d3a52a1058c9cfd02ee1ea22c8ce17;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/manifests/config.pp b/modules/apache2/manifests/config.pp index 0bb6a6e49..13697cba9 100644 --- a/modules/apache2/manifests/config.pp +++ b/modules/apache2/manifests/config.pp @@ -1,6 +1,7 @@ define apache2::config ( $source=undef, $content=undef, + $nocontentok=undef, $ensure=present ) { @@ -8,7 +9,7 @@ define apache2::config ( case $ensure { present: { - if ! ($source or $content) { + if ! ($source or $content or $nocontentok) { fail ( "No configuration found for ${name}" ) } @@ -19,7 +20,7 @@ define apache2::config ( require => Package['apache2'], notify => Exec['service apache2 reload'], } - } else { + } elsif $source { file { "/etc/apache2/conf-available/${name}.conf": ensure => $ensure, source => $source,