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

Puppet 6 support #444

Merged
merged 4 commits into from
Oct 17, 2018
Merged

Puppet 6 support #444

merged 4 commits into from
Oct 17, 2018

Conversation

l-lotz
Copy link
Contributor

@l-lotz l-lotz commented Oct 16, 2018

This pull request makes the consul module run under puppet 6. It converts the functions from the legacy puppet 3.x API to the new puppet function API. It also adds unit tests to the travis jobs for puppet6 to ensure future compatibility.

This commit makes als sure that the pretty and not pretty case is tested
for the simple cases. Also switched from the deprecated "subject.call" to
subject.execute for the tests.
Copy link
Member

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

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

thanks for the awesome PR!

@@ -11,7 +11,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 4.7.1 < 6.0.0"
"version_requirement": ">= 4.7.1 < 7.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

do the new functions actually work with puppet 4.7.1 or do they require puppet5/4.10?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the docs it states that the legacy API should only be used for puppet 3.x compatibility, so I assumed that puppet 4.x should be supported. The docs for 4.9 mention both APIs so at least 4.9 should be supported (these pages do not exist for 4.8 and 4.7 unfortunately).

@bastelfreak
Copy link
Member

Thanks. I will mark this as backwards-incompatible since the function are new namespaced.

@bastelfreak bastelfreak merged commit 139a3b7 into voxpupuli:master Oct 17, 2018
@shamil shamil mentioned this pull request Nov 8, 2018
spuder pushed a commit to spuder/puppet-consul that referenced this pull request Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants