aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/sys.conf.erb9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/sys.conf.erb b/templates/sys.conf.erb
index b8a542a..3761167 100644
--- a/templates/sys.conf.erb
+++ b/templates/sys.conf.erb
@@ -3,11 +3,10 @@
# the next time Puppet runs. Please make configuration changes to this
# service in Puppet.
-<% %w{parentdir packagesfile partitionsfile hardwarefile}.each do |v|
- if send(v)
- -%><%= v + ' = ' + send(v) + "\n" %><%
- end
-end -%>
+<%= 'parentdir = '+ @parentdir if @parentdir %>
+<%= 'packagesfile = '+ @packagesfile if @packagesfile %>
+<%= 'partitionsfile = '+ @partitionsfile if @partitionsfile %>
+<%= 'hardwarefile = '+ @hardwarefile if @hardwarefile %>
packages = <%= @packages ? 'yes' : 'no' %>
partitions = <%= @partitions ? 'yes' : 'no' %>