/[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 1479 - (show annotations) (download)
Tue Apr 5 02:23:26 2011 UTC (13 years ago) by misc
File size: 854 byte(s)
- fix define naming

1 define "auto_installation::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