-
Notifications
You must be signed in to change notification settings - Fork 54
Package resource type #45
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
Package resource type #45
Conversation
Thanks, generally this is a great idea, especially for use cases like configuring a CI build server. There is another fork out there that just converted it from a class to a define in the main init.pp, but no PR was done: https://github.com/burdara/puppet-jdk_oracle/blob/master/manifests/init.pp A few feedback items:
|
package-resource-type Conflicts: manifests/init.pp
|
||
} | ||
|
||
jdk_oracle::package { 'jdk_oracle': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this now be: jdk_oracle::install
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
This seems like a breaking change and people may have to update their references to use it as a define now vs a class (exa: hiera users), so it feels like this should be a major 2.0.0 release, to make it clear that change will happen. Agree/disagree? |
Corrected jdk_oracle::package to jdk_oracle::install
I disagree, the original class definition is still there, so anybody still using it should not be affected. But, I'm not a puppet expert, so don't know if I'm overlooking something. |
Good point, we have the original class with parameters which remain unchanged, so it would be the implementer's option to call the define directly, or not. |
Changes Unknown when pulling 94768a5 on pulquero:package-resource-type into ** on tylerwalts:master**. |
Refactored to create a 'package' resource type so it is possible to install multiple jdk versions.
Example:
jdk_oracle::package {
'jdk6':
version => '6',
create_symlink => false,
default_java => false;
'jdk7':
version => '7'
}
Changes:
contents of init.pp moved to package.pp and resource titles made unique by addition of _${version} where necessary.