diff options
Diffstat (limited to 'modules/libvirtd')
-rw-r--r-- | modules/libvirtd/manifests/download.rb | 21 | ||||
-rw-r--r-- | modules/libvirtd/manifests/init.pp | 1 |
2 files changed, 0 insertions, 22 deletions
diff --git a/modules/libvirtd/manifests/download.rb b/modules/libvirtd/manifests/download.rb deleted file mode 100644 index d0e6821b..00000000 --- a/modules/libvirtd/manifests/download.rb +++ /dev/null @@ -1,21 +0,0 @@ -define "libvirtd::download::netboot_images", :path, :versions, :archs, :mirror_path, :files do - # example : - # mandriva : - # ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/devel/%{version}/%{arch}/isolinux/alt0/ - for a in @archs do - for v in @versions do - # uncomment when ruby 1.9 will be stable and used - # mirror_file_path = @mirror_path % { :arch => a, :version => v } - mirror_file_path = @mirror_path.gsub(/%{arch}/, a) - mirror_file_path = mirror_file_path.gsub(/%{version}/, v) - for f in @files do - file_name = "#{@path}/#{@name}_#{v}_#{a}_#{f}" - create_resource(:exec, "wget -q #{mirror_file_path}/#{f} -O #{file_name}", - :creates => file_name) - end - end - end -end - - - diff --git a/modules/libvirtd/manifests/init.pp b/modules/libvirtd/manifests/init.pp index 0fc8cf90..52475a42 100644 --- a/modules/libvirtd/manifests/init.pp +++ b/modules/libvirtd/manifests/init.pp @@ -1,6 +1,5 @@ class libvirtd { class base { - import "download.rb" # make sure to use a recent enough version # dnsmasq-base -> for nat network # netcat-openbsd -> for ssh remote access |