Skip to content

Puppet define created that can be used to download files rather than needing to store binaries in puppet repos

License

Notifications You must be signed in to change notification settings

anovitskiy/puppet-download_file

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-download_file

Small define that will allow you to download a file, on Windows, for usage during an installation. This was created so that we didn't have to store large binaries (DotNet4.0 etc.) in our modules.

Build Status

Usage

download_file { "Download dotnet 4.0" :
    url         => 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe',
    destination => 'c:\temp'
}

This can now be used in other modules that need to install applications. All you would need to do is to have a require (as used with puppet-dotnet, by Liam Bennett) e.g.

download_file { "Download dotnet 4.0" :
    url         => 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe',
    destination => 'c:\temp'
}

exec { 'install-dotnet-4':
         command   => "c:\\temp\\dotNetFx40_Full_x86_x64.exe /q /norestart",
         provider  => powershell,
         logoutput => true,
         unless    => "if ((Get-Item -LiteralPath \'${dotnet::params::f_reg_key}\' -ErrorAction SilentlyContinue).GetValue(\'DisplayVersion\')) { exit 0 }",
         require   => Download_file['Download dotnet 4.0']
}

About

Puppet define created that can be used to download files rather than needing to store binaries in puppet repos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 67.8%
  • Puppet 32.2%