Skip to content

Commit

Permalink
Updated AWS example to use latest Install-Module style provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Apr 18, 2016
1 parent 555eb04 commit 224a962
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions examples/packer.aws.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@
"provisioners": [
{
"type":"powershell",
"scripts": [
"scripts/provision.ps1"
"inline": [
"Write-Verbose 'Install PackageManagement'",
"(New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/C/4/1/C41378D4-7F41-4BBE-9D0D-0E4F98585C61/PackageManagement_x64.msi','c:\\PackageManagement_x64.msi')",
"msiexec /qb /i C:\\PackageManagement_x64.msi",
"Start-Sleep -s 20",
"Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force",
"Install-Module -Name xWebAdministration -Force",
"Get-DSCResource"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions scripts/packer-provisioner-dsc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class PackerProvisionerDsc < Formula

if Hardware.is_64_bit?
url "https://github.com/mefellows/packer-dsc/releases/download/#{version}/darwin_amd64.zip"
sha1 'fb347ef854c2020d182f0661b04842d62f6d3cab'
sha1 '99d3a857486770821f71b22482d3df56715cefc0'
else
url "https://github.com/mefellows/packer-dsc/releases/download/#{version}/darwin_386.zip"
sha1 '22e1b8facb397c51d8fd840806cb571a550adeb4'
sha1 '9cf1e701620e355ffd6fa6dd93a9314cfca5321a'
end

depends_on :arch => :intel
Expand Down

0 comments on commit 224a962

Please sign in to comment.