Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-8086) Puppet 5 and 6: wrong urls for windows msi #334

Merged
merged 2 commits into from Oct 18, 2018

Conversation

fculpo
Copy link
Contributor

@fculpo fculpo commented Oct 12, 2018

Correct URLs for windows msis (Puppet 5 and 6)

@@ -19,7 +19,12 @@
$_https_source = "https://pm.puppetlabs.com/puppet-agent/${_pe_server_version}/${_agent_version}/repos/windows/${package_file_name}"
}
else {
$_https_source = "https://downloads.puppetlabs.com/windows/${package_file_name}"
$dir = $package_file_name ? {
/.*-5\..*/ => 'puppet5/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this regex be a bit more specialized, to ensure it only matches what we expect? E.g. puppet-agent-5\..* might be better.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious whether this $dir value could just be derived from $::puppet_agent::collection, which will be set to PC1 (for puppet 4), puppet5, or puppet6 -- I will take a look and see if that could work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could work, but the collection will still be the default (PC1) at this point unless someone has specified a value for it explicitly -- using a regex on the package name does seem to be the correct way to get this done

@smcclellan smcclellan merged commit 72ae00b into puppetlabs:master Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants