Commit 7832e089 authored by Lucas Nussbaum's avatar Lucas Nussbaum Committed by Simon Delamare

Rakefile: fix indentation

parent 66f215a3
......@@ -165,30 +165,28 @@ namespace :gen do
exit(ret)
end
namespace :puppet do
namespace :puppet do
all_puppet_tasks = [:bindg5k, :conmang5k, :dhcpg5k, :kadeployg5k, :lanpowerg5k, :kavlang5k]
all_puppet_tasks = [:bindg5k, :conmang5k, :dhcpg5k, :kadeployg5k, :lanpowerg5k, :kavlang5k]
all_puppet_tasks.each { |t|
desc "Generate #{t} configuration -- parameters: [SITE={grenoble,...}] [OUTPUTDIR=(default: #{PUPPET_ODIR})] [CONFDIR=...] [VERBOSE=1]"
task t do
require "refrepo/gen/puppet/#{t}"
options = {}
options[:sites] = ( ENV['SITE'] ? ENV['SITE'].split(',') : G5K_SITES )
options[:output_dir] = ENV['OUTPUTDIR'] || PUPPET_ODIR
options[:verbose] = (ENV['VERBOSE'] != nil)
options[:conf_dir] = ENV['CONFDIR'] if ENV['CONFDIR']
send("generate_puppet_#{t}", options)
all_puppet_tasks.each { |t|
desc "Generate #{t} configuration -- parameters: [SITE={grenoble,...}] [OUTPUTDIR=(default: #{PUPPET_ODIR})] [CONFDIR=...] [VERBOSE=1]"
task t do
require "refrepo/gen/puppet/#{t}"
options = {}
options[:sites] = ( ENV['SITE'] ? ENV['SITE'].split(',') : G5K_SITES )
options[:output_dir] = ENV['OUTPUTDIR'] || PUPPET_ODIR
options[:verbose] = (ENV['VERBOSE'] != nil)
options[:conf_dir] = ENV['CONFDIR'] if ENV['CONFDIR']
send("generate_puppet_#{t}", options)
end
}
desc "Launch all puppet generators"
task :all => all_puppet_tasks
end
end
}
desc "Launch all puppet generators"
task :all => all_puppet_tasks
end
end
desc "Creates JSON data from inputs"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment