Added cooks/releases auto-upload
This commit is contained in:
parent
39d8eb58f1
commit
70a709215c
17
cookbooks/nailgun/recipes/upload.rb
Normal file
17
cookbooks/nailgun/recipes/upload.rb
Normal file
@ -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
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"recipes": [
|
||||
"repo::http",
|
||||
"nailgun::server",
|
||||
"cobbler::default"
|
||||
"recipes": [
|
||||
"repo::http",
|
||||
"nailgun::server",
|
||||
"cobbler::default",
|
||||
"nailgun::upload"
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user