Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/sitescripts/manifests/init.pp

Issue 29339227: Issue 3881 - Ensure sitescripts.ini being present even if empty (Closed)
Patch Set: Created March 31, 2016, 4:14 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | modules/web/manifests/server.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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', {})
« no previous file with comments | « no previous file | modules/web/manifests/server.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld