summaryrefslogtreecommitdiff
path: root/manifests/defines
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-02-22 21:24:10 +0000
committermh <mh@immerda.ch>2009-02-22 21:24:10 +0000
commit3329e5d2c2bd4ab270f4d8579251c0aa6b7277f8 (patch)
tree2b15791bd365c0d1a8015174ed72834349d647f6 /manifests/defines
parent939a7583ebc7d2c023d894c2e3696d3f277ac035 (diff)
better use absent over empty strings
Diffstat (limited to 'manifests/defines')
-rw-r--r--manifests/defines/configuration.pp8
1 files changed, 4 insertions, 4 deletions
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}",