Skip to content

Commit

Permalink
Updated the README to make sure and talk about the proxyAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Nov 29, 2013
1 parent c23c807 commit d4294d9
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,32 @@ Usage
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_directory => 'c:\temp'
url => 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe',
destination_directory => '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']
}

You can use this module and specify a proxy to download the file. It's usage would then be as follows:

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_directory => 'c:\temp',
proxyAddress => 'http://myproxy.com:port',
}

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']
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']
}

The proxy will be used as part of the download using PowerShell. This does not set a system wide proxy

0 comments on commit d4294d9

Please sign in to comment.