From 3329e5d2c2bd4ab270f4d8579251c0aa6b7277f8 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 22 Feb 2009 21:24:10 +0000 Subject: better use absent over empty strings --- manifests/defines/configuration.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'manifests/defines/configuration.pp') diff --git a/manifests/defines/configuration.pp b/manifests/defines/configuration.pp index 8911c07..f6bae30 100644 --- a/manifests/defines/configuration.pp +++ b/manifests/defines/configuration.pp @@ -4,12 +4,12 @@ # deploy apache (.conf) configuration file (non-vhost) define apache::config::file( - $source = '', + $source = 'absent', $content = 'absent', - $destination = '' + $destination = 'absent' ){ $real_destination = $destination ? { - '' => $operatingsystem ? { + 'absent' => $operatingsystem ? { centos => "$apache::centos::config_dir/conf.d/${name}", gentoo => "$apache::gentoo::config_dir/${name}", debian => "$apache::debian::config_dir/conf.d/${name}", @@ -27,7 +27,7 @@ define apache::config::file( case $content { 'absent': { $real_source = $source ? { - '' => [ + 'absent' => [ "puppet://$server/files/apache/conf.d/${fqdn}/${name}", "puppet://$server/files/apache/conf.d/${apache_cluster_node}/${name}", "puppet://$server/files/apache/conf.d/${operatingsystem}.${lsbdistcodename}/${name}", -- cgit v1.2.3