Skip to content

Commit 83bcd1d

Browse files
Albin PETITAlbin PETIT
authored andcommitted
[generators/puppet] update kadeployg5k.conf.erb to remove preinstall for new clusters
1 parent 21f0ec5 commit 83bcd1d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/refrepo/gen/puppet/kadeployg5k.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def generate_puppet_kadeployg5k(options)
152152
next
153153
end
154154

155-
output = ERB.new(File.read(File.expand_path('templates/kadeployg5k.conf.erb', File.dirname(__FILE__)))).result(binding)
155+
output = ERB.new(File.read(File.expand_path('templates/kadeployg5k.conf.erb', File.dirname(__FILE__))), nil, '-').result(binding)
156156

157157
output_file = Pathname("#{options[:output_dir]}//platforms/production/modules/generated/files/grid5000/kadeploy/server#{suffix.tr('-', '_')}/#{site_uid}/#{cluster_uid}-cluster.conf")
158158

lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,13 @@ initrd_dev = 'kernels/kadeploy3-deploy-kernel-jessie.initrd.img'%>
6363
vmlinuz: kernels/deploy-vmlinuz-2.6.31.4-nfsroot<% end %>
6464
user:
6565
params: <%= data['user.params'] %>
66+
<%- if ! data['preinstall'].nil? && data['preinstall'].to_s == "true" -%>
6667
postinstall:
6768
files:
6869
- script: none
6970
format: tgz
7071
file: /grid5000/preinstalls/preinstall-<%= cluster_uid %>.tgz
72+
<%- end -%>
7173
pxe:
7274
headers:
7375
dhcp: &id001 |-

0 commit comments

Comments
 (0)