# http_download ## Overview This module contains a puppet type that allows http downloads directly via ruby. No additional executables are needed. It supports SSL and Basic authentication. ## Class: http_download The class of that module just acts as test and example showing how to use the type. ### Sample Usage ```puppet download {'test file 1': uri => 'http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.22/7z922.exe', dest => '/tmp/7z922.exe' } download { 'my ssl and basic auth download': uri => 'https://www.example.com/download/example.txt', dest => '/tmp/example.txt', user => 'user', pass => 'pass' } download {'download if not exists': uri => 'http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.22/7z922.exe', force => false, dest => '/tmp/7z922.exe' } download { 'download with basic auth and ssl, ssl forced': uri => 'http://host.com:8443/test.txt', use_ssl => true, dest => '/tmp/example.txt', user => 'user', pass => 'pass' } download { 'download with proxy settings without auth': uri => 'http://host.com:8443/test.txt', dest => '/tmp/example.txt', proxy_host => '127.0.0.1', proxy_port => '3128' } download { 'download with proxy setting with auth': uri => 'http://host.com:8443/test.txt', dest => '/tmp/example.txt', proxy_host => '127.0.0.1', proxy_port => '3128', proxy_user => 'my-proxy-user', proxy_pass => 'my-proxy-pass' } ``` ## Supported OSes As it's written in plain ruby all OS that can run Puppet should be able to use it. I have tested it on different Windows versions and various Linux distributions (CentOS, Ubuntu, AmazonLinux) without issues.