Skip to content

Commit

Permalink
[generators/puppet] update kadeployg5k.conf.erb to remove preinstall …
Browse files Browse the repository at this point in the history
…for new clusters
  • Loading branch information
Albin PETIT authored and Albin PETIT committed Jun 11, 2019
1 parent 21f0ec5 commit 83bcd1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/refrepo/gen/puppet/kadeployg5k.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def generate_puppet_kadeployg5k(options)
next
end

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

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

Expand Down
2 changes: 2 additions & 0 deletions lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ initrd_dev = 'kernels/kadeploy3-deploy-kernel-jessie.initrd.img'%>
vmlinuz: kernels/deploy-vmlinuz-2.6.31.4-nfsroot<% end %>
user:
params: <%= data['user.params'] %>
<%- if ! data['preinstall'].nil? && data['preinstall'].to_s == "true" -%>
postinstall:
files:
- script: none
format: tgz
file: /grid5000/preinstalls/preinstall-<%= cluster_uid %>.tgz
<%- end -%>
pxe:
headers:
dhcp: &id001 |-
Expand Down

0 comments on commit 83bcd1d

Please sign in to comment.