Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 83bcd1d6 authored by Albin PETIT's avatar Albin PETIT
Browse files

[generators/puppet] update kadeployg5k.conf.erb to remove preinstall for new clusters

parent 21f0ec5c
No related branches found
No related tags found
No related merge requests found
Pipeline #82243 passed
...@@ -152,7 +152,7 @@ def generate_puppet_kadeployg5k(options) ...@@ -152,7 +152,7 @@ def generate_puppet_kadeployg5k(options)
next next
end 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") output_file = Pathname("#{options[:output_dir]}//platforms/production/modules/generated/files/grid5000/kadeploy/server#{suffix.tr('-', '_')}/#{site_uid}/#{cluster_uid}-cluster.conf")
......
...@@ -63,11 +63,13 @@ initrd_dev = 'kernels/kadeploy3-deploy-kernel-jessie.initrd.img'%> ...@@ -63,11 +63,13 @@ initrd_dev = 'kernels/kadeploy3-deploy-kernel-jessie.initrd.img'%>
vmlinuz: kernels/deploy-vmlinuz-2.6.31.4-nfsroot<% end %> vmlinuz: kernels/deploy-vmlinuz-2.6.31.4-nfsroot<% end %>
user: user:
params: <%= data['user.params'] %> params: <%= data['user.params'] %>
<%- if ! data['preinstall'].nil? && data['preinstall'].to_s == "true" -%>
postinstall: postinstall:
files: files:
- script: none - script: none
format: tgz format: tgz
file: /grid5000/preinstalls/preinstall-<%= cluster_uid %>.tgz file: /grid5000/preinstalls/preinstall-<%= cluster_uid %>.tgz
<%- end -%>
pxe: pxe:
headers: headers:
dhcp: &id001 |- dhcp: &id001 |-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment