/[adm]/puppet/modules/auto_installation/manifests/download.rb
ViewVC logotype

Contents of /puppet/modules/auto_installation/manifests/download.rb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1472 - (show annotations) (download)
Tue Apr 5 02:07:58 2011 UTC (12 years, 10 months ago) by misc
File size: 845 byte(s)
move the download class to auto_installation, as it doesn't belong to libvirt module
1 define "libvirtd::download::netboot_images", :path, :versions, :archs, :mirror_path, :files do
2 # example :
3 # mandriva :
4 # ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/devel/%{version}/%{arch}/isolinux/alt0/
5 for a in @archs do
6 for v in @versions do
7 # uncomment when ruby 1.9 will be stable and used
8 # mirror_file_path = @mirror_path % { :arch => a, :version => v }
9 mirror_file_path = @mirror_path.gsub(/%{arch}/, a)
10 mirror_file_path = mirror_file_path.gsub(/%{version}/, v)
11 for f in @files do
12 file_name = "#{@path}/#{@name}_#{v}_#{a}_#{f}"
13 create_resource(:exec, "wget -q #{mirror_file_path}/#{f} -O #{file_name}",
14 :creates => file_name)
15 end
16 end
17 end
18 end
19
20
21

  ViewVC Help
Powered by ViewVC 1.1.30