Skip to content

Commit

Permalink
update puppet windows agent download url
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bailey committed Oct 11, 2016
1 parent 676076d commit 3b20c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
if $is_pe {
$_package_file_name = "${package_name}-${_arch}.msi"
} elsif $package_version != undef {
$_package_file_name = "${package_name}-${_arch}-${package_version}.msi"
$_package_file_name = "${package_name}-${package_version}-${_arch}.msi"
} else {
$_package_file_name = "${package_name}-${_arch}-latest.msi"
}
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/puppet_agent_windows_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
describe 'default source' do
it {
is_expected.to contain_file('C:\tmp\install_puppet.bat').with_content(
/msiexec.exe \/qn \/norestart \/i "https:\/\/downloads.puppetlabs.com\/windows\/puppet-agent-#{values[:expect_arch]}-#{package_version}\.msi"/)
/msiexec.exe \/qn \/norestart \/i "https:\/\/downloads.puppetlabs.com\/windows\/puppet-agent-#{package_version}-#{values[:expect_arch]}\.msi"/)
is_expected.to contain_file('C:\tmp\install_puppet.bat').with_content(/\/l\*vx "C:\\tmp\\puppet-\d+_\d+_\d+-\d+_\d+-installer\.log"/)
}
it {
Expand Down Expand Up @@ -188,7 +188,7 @@
}
it {
is_expected.to contain_file('C:\tmp\install_puppet.bat').with_content(
/msiexec.exe \/qn \/norestart \/i "https:\/\/downloads.puppetlabs.com\/windows\/puppet-agent-x86-#{package_version}\.msi"/
/msiexec.exe \/qn \/norestart \/i "https:\/\/downloads.puppetlabs.com\/windows\/puppet-agent-#{package_version}-x86.msi"/
)
}
end
Expand Down

0 comments on commit 3b20c22

Please sign in to comment.