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

Add a check for Puppet version to task helper #722

Merged
merged 1 commit into from
Nov 10, 2017

Conversation

willmeek
Copy link

@willmeek willmeek commented Nov 9, 2017

This commit will add a check for Puppet version being 5 or greater
around the task test helper. This ensures that is it not attempted
pre-task versions of puppet.

@@ -11,7 +11,7 @@ def pe_install?
end

run_puppet_install_helper
install_bolt_on(hosts) unless pe_install?
install_bolt_on(hosts) unless pe_install? && puppet_version =~ %r{(5\.\d\.\d)}

Choose a reason for hiding this comment

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

This may not be the behaviour you want

This will install bolt if this is a PE install but the puppet version is not 5.x

Choose a reason for hiding this comment

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

I think the original unless is the most valid. Install bolt if we're not installing PE

Copy link
Author

Choose a reason for hiding this comment

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

Thanks Glenn, I've reverted the version check from the bolt install.

@willmeek willmeek force-pushed the release_check_puppet_ver branch from 0cc0938 to a128054 Compare November 10, 2017 12:10
@pmcmaw
Copy link

pmcmaw commented Nov 10, 2017

@willmeek if you update the title and description I will get this merged for you.

This commit will add a check for Puppet version being 5 or greater
around the task test helper. This ensures that is it not attempted
pre-task versions of puppet.
@willmeek willmeek force-pushed the release_check_puppet_ver branch from a128054 to bccf415 Compare November 10, 2017 13:52
@willmeek willmeek changed the title Add a check for Puppet version to task and bolt helpers Add a check for Puppet version to task helper Nov 10, 2017
@willmeek
Copy link
Author

Thanks, updated

@pmcmaw pmcmaw merged commit 59f1e14 into puppetlabs:release Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants