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

[MODULES-1484] Add support for install_options for all package resources... #591

Merged
merged 1 commit into from Nov 11, 2014

Conversation

damonconway
Copy link
Contributor

Add install_options parameter to mysql::bindings, mysql::client, and
mysql::server. The default is undef.

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 {
Copy link
Contributor

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.

@damonconway
Copy link
Contributor Author

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,
Copy link
Contributor

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?

Copy link
Contributor Author

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ć notifications@github.com 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.

@igalic
Copy link
Contributor

igalic commented Nov 7, 2014

the travis build is failing because of traivis itself, so let's hope that a new push/re-run will succeed.

install_options => $mysql::bindings::install_options,
name => $mysql::bindings::java_package_name,
provider => $mysql::bindings::java_package_provider,
}
Copy link
Contributor

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.

Copy link
Contributor Author

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ć notifications@github.com 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.
igalic added a commit that referenced this pull request Nov 11, 2014
[MODULES-1484] Add support for install_options for all package resources...
@igalic igalic merged commit ad709af into puppetlabs:master Nov 11, 2014
@igalic
Copy link
Contributor

igalic commented Nov 11, 2014

thank you \o/

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.

None yet

3 participants