Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

add Puppet v4.x compatibility - #91

Merged
hunner merged 1 commit into
puppetlabs-toy-chest:masterfrom
Phil-Friderici:puppetv4
Mar 3, 2016
Merged

add Puppet v4.x compatibility#91
hunner merged 1 commit into
puppetlabs-toy-chest:masterfrom
Phil-Friderici:puppetv4

Conversation

@Phil-Friderici

Copy link
Copy Markdown
Contributor
  • deprecate type() in favor of type3x() (uses stdlib 4.6.0 therefore)
  • add rspec tests for Puppet 3.8.x to 4.2.x
  • fix rspec message "PENDING: Not yet implemented"
  • align passenger-load.erb for Puppet v4 compatibility
  • remove allow_failures section from Travis configuration

@Phil-Friderici

Copy link
Copy Markdown
Contributor Author

I would like to see this module getting Puppet v4 compatible because it is used as submodule for other modules. At the moment it prevent other modules to be fully Puppet v4 compatibility.

@Phil-Friderici

Copy link
Copy Markdown
Contributor Author

btw: this PR includes the change from PR #90

Comment thread manifests/init.pp
}

if type($include_build_tools) == 'string' {
if type3x($include_build_tools) == 'string' {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would it be better to use is_string to avoid calling a deprecated function like type3x?

For example:

  if is_string($include_build_tools) {
  ...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I guess that type3x will be supported much longer [1] than needed. If this should be a blocker, I will happily change it to use is_string() instead. Just drop me a line.

[1] https://github.com/puppetlabs/puppetlabs-stdlib#limitations

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think type3x() or is_string() are going anywhere, though puppet 4 patterns don't need either of them. And either function is just one side of the same coin.

hunner added a commit that referenced this pull request Mar 3, 2016
add Puppet v4.x compatibility
@hunner
hunner merged commit 052e1e0 into puppetlabs-toy-chest:master Mar 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants