-
Notifications
You must be signed in to change notification settings - Fork 794
[MODULES-1484] Add support for install_options for all package resources... #591
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
Conversation
91a4660
to
0837e4c
Compare
ensure => $mysql::bindings::client_dev_package_ensure, | ||
name => $mysql::bindings::client_dev_package_name, | ||
provider => $mysql::bindings::client_dev_package_provider, | ||
if $mysql::bindings::install_options == undef { |
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.
this if/else is not necessary. nowhere.
if you pass undef to a resource's parameter, nothing happens.
0837e4c
to
51dad93
Compare
Ok, I amended the commit to get rid of the if statements and validate_array() calls. |
@@ -1,5 +1,6 @@ | |||
# See README.md. | |||
class mysql::bindings ( | |||
$install_options = undef, | |||
# Boolean to determine if we should include the classes. | |||
$java_enable = false, | |||
$perl_enable = false, |
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.
can you please re-align those?
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.
Ok, I've realigned and pushed.
On Fri, Nov 7, 2014 at 8:19 AM, Igor Galić [email protected] wrote:
In manifests/bindings.pp:
@@ -1,5 +1,6 @@
See README.md.
class mysql::bindings (
- $install_options = undef,
Boolean to determine if we should include the classes.
$java_enable = false,
$perl_enable = false,can you please re-align those?
—
Reply to this email directly or view it on GitHub
https://github.com/puppetlabs/puppetlabs-mysql/pull/591/files#r20011891.
the travis build is failing because of traivis itself, so let's hope that a new push/re-run will succeed. |
51dad93
to
51f1444
Compare
install_options => $mysql::bindings::install_options, | ||
name => $mysql::bindings::java_package_name, | ||
provider => $mysql::bindings::java_package_provider, | ||
} |
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.
as @mhaskel pointed out to me on irc, the build is failing because of this space after the }
here.
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.
Ok, I have fixed that, and my changes are clean in puppet-lint.
Damon
On Fri, Nov 7, 2014 at 4:20 PM, Igor Galić [email protected] wrote:
In manifests/bindings/java.pp:
@@ -2,9 +2,10 @@
class mysql::bindings::java {package { 'mysql-connector-java':
- ensure => $mysql::bindings::java_package_ensure,
- name => $mysql::bindings::java_package_name,
- provider => $mysql::bindings::java_package_provider,
- }
- ensure => $mysql::bindings::java_package_ensure,
- install_options => $mysql::bindings::install_options,
- name => $mysql::bindings::java_package_name,
- provider => $mysql::bindings::java_package_provider,
- }
as @mhaskel https://github.com/mhaskel pointed out to me on irc, the
build is failing because of this space after the } here.—
Reply to this email directly or view it on GitHub
https://github.com/puppetlabs/puppetlabs-mysql/pull/591/files#r20041480.
…ces. Add install_options parameter to mysql::bindings, mysql::client, and mysql::server. The default is undef.
51f1444
to
7de2316
Compare
[MODULES-1484] Add support for install_options for all package resources...
thank you \o/ |
Add install_options parameter to mysql::bindings, mysql::client, and
mysql::server. The default is undef.