diff --git a/cookbooks/nailgun/recipes/upload.rb b/cookbooks/nailgun/recipes/upload.rb new file mode 100644 index 000000000..e9e5bd781 --- /dev/null +++ b/cookbooks/nailgun/recipes/upload.rb @@ -0,0 +1,17 @@ +cooks = Dir.glob("#{node[:nailgun][:root]}/os-cookbooks/cookbooks/*").select {|f| File.directory? f} +cooks.each do |cook| + bash "Bash script for cookbook installation #{cook}" do + code <<-EOH + #{node[:nailgun][:root]}/bin/install_cookbook "#{cook}" + EOH + end +end + +releases = Dir.glob("#{node[:nailgun][:root]}/os-cookbooks/releases/*.json") +releases.each do |rls| + bash "Bash script for release creation #{rls}" do + code <<-EOH + #{node[:nailgun][:root]}/bin/create_release "#{rls}" + EOH + end +end diff --git a/iso/solo/solo.json b/iso/solo/solo.json index 16d7b2efe..b160dc4b1 100644 --- a/iso/solo/solo.json +++ b/iso/solo/solo.json @@ -1,8 +1,8 @@ { - "recipes": [ - "repo::http", - "nailgun::server", - "cobbler::default" + "recipes": [ + "repo::http", + "nailgun::server", + "cobbler::default", + "nailgun::upload" ] } -