Index: modules/sitescripts/manifests/init.pp |
diff --git a/modules/sitescripts/manifests/init.pp b/modules/sitescripts/manifests/init.pp |
index 246290193112290af86d2e1a0eba1f8bdff3b0d3..3aafb98c74cbebc69eae56864287481b22b22e69 100644 |
--- a/modules/sitescripts/manifests/init.pp |
+++ b/modules/sitescripts/manifests/init.pp |
@@ -25,10 +25,18 @@ class sitescripts ( |
if ($sitescriptsini_source != '') or ($sitescriptsini_content != '') { |
- configfragment {'/etc/sitescripts.ini': |
- content => $sitescriptsini_content, |
- source => $sitescriptsini_source, |
- } |
+ $content = $sitescriptsini_content |
+ $source = $sitescriptsini_source |
+ } |
+ else { |
+ |
+ $content = "# Puppet: Class['$title']\n" |
+ $source = '' |
+ } |
+ |
+ configfragment {'/etc/sitescripts.ini': |
+ content => $content, |
+ source => $source, |
} |
$configfragments = hiera('sitescripts::configfragments', {}) |