Mentions légales du service

Skip to content
Snippets Groups Projects

[Rake] Do not apply network_monitoring and kwollectg5k to fake equipments and skip some network validation

Merged Nicolas Perrin requested to merge fakeswitch into master
1 unresolved thread
Files
3
@@ -49,6 +49,9 @@ def generate_puppet_kwollectg5k(options)
# Metrics configuration for network device
site['network_equipments'].each { |neteq_uid, neteq|
# do not apply to fake equipment
next if neteq_uid.include? 'fake'
output = ERB.new(File.read(File.expand_path('templates/kwollect-network.erb', File.dirname(__FILE__))), trim_mode: '-').result(binding)
output_file = Pathname("#{options[:output_dir]}//platforms/production/modules/generated/files/grid5000/kwollect/#{site_uid}/#{neteq_uid}.conf")
output_file.dirname.mkpath()
Loading