From a6d485f35d75449e7da98ca92b3e5dceecce4bd6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 23 Sep 2016 21:53:00 +0200 Subject: [PATCH] Support nocontentok for apache2::config --- modules/apache2/manifests/config.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, -- 2.20.1