Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b952b779 authored by POUILLOUX Laurent's avatar POUILLOUX Laurent
Browse files

[puppet][kavlan] skip site when conf is absent

parent 50d06cdd
No related branches found
No related tags found
1 merge request!1029Draft: [puppet][kavlan] skip site when conf is absent
Pipeline #1118847 passed
......@@ -47,6 +47,7 @@ def generate_puppet_kavlang5k(options)
conf = YAML::load(ERB.new(File.read("#{options[:conf_dir]}/kavlang5k.yaml"), trim_mode: '-').result(binding))[site_uid]
if not conf
warn "No generator configuration for site #{site_uid} found in #{options[:conf_dir]}/kavlang5k.yaml, skipping kavlan.conf"
next
else
output = ERB.new(File.read(File.expand_path('templates/kavlan.conf.erb', File.dirname(__FILE__))), trim_mode: '-').result(binding)
output_file = Pathname("#{options[:output_dir]}//platforms/production/modules/generated/files/grid5000/kavlan/#{site_uid}/kavlan.conf")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment