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

Allow gem_install_options on sensu_gem plugins #878

Merged
merged 1 commit into from
May 21, 2018

Conversation

statyk
Copy link
Contributor

@statyk statyk commented Jan 29, 2018

Pull Request Checklist

Description

Related Issue

Fixes # .

Motivation and Context

How Has This Been Tested?

General

  • Update README.md with any necessary configuration snippets

  • New parameters are documented

  • New parameters have tests

  • Tests pass - bundle exec rake validate lint spec

@ghoneycutt
Copy link
Collaborator

Looks good. @treydock could you please test our matrix in vagrant and confirm.

@treydock
Copy link
Collaborator

@ghoneycutt majority of tests pass. Failures unrelated to this module.

sensu-server                pass
sensu-server-cluster        pass
sensu-server-puppet5        pass
sensu-server-enterprise     pass
el7-client                  pass
el6-client                  pass
ubuntu1604-client           pass
ubuntu1404-client           pass
amazon201703-client         failed - vagrant
win2012r2-client            pass
win2012r2-client-chocolatey failed - unable to install from chocolatey
debian9-client              failed - vagrant
debian8-client              pass
debian7-client              pass
macos-client                failed - vagrant

@ghoneycutt
Copy link
Collaborator

@treydock could you please open issues for why the tests failed with Vagrant. I'd like to be sure they are not somehow related before merging this.

@treydock
Copy link
Collaborator

@ghoneycutt As mentioned in new issue #891, the failures except chocolatey one are unrelated to this module. The issues are more with the actual vagrant boxes.

Also based on the change in this PR, only tests/sensu-server-proxy-checks.pp uses sensu::plugin and as far as I can tell that manifest is not loaded by any of the vagrant boxes.

@ghoneycutt ghoneycutt merged commit a7182f3 into sensu:master May 21, 2018
@ghoneycutt
Copy link
Collaborator

Released in v2.53.0

@cdenneen
Copy link
Contributor

Not sure if related but using 2.52.0 with windows the gem_install_options being set to --source http://artifactory.domain.com/api/rubygems/rubygems yields the following

Execution of 'C:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/gem.bat install --no-rdoc --no-ri sensu-plugin "--source http://artifactory.domain.com/api/rubygems/rubygems"' returned 1: ERROR: While executing gem ... (URI::InvalidURIError) bad URI(is not URI?): ?gems="--source http://artifactory.domain.com/api/rubygems/rubygems" Successfully installed mixlib-cli-1.7.0 Successfully installed sensu-plugin-2.5.0
change from absent to present failed: Execution of 'C:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/gem.bat install --no-rdoc --no-ri sensu-plugin "--source http://artifactory.domain.com/api/rubygems/rubygems"' returned 1: ERROR: While executing gem ... (URI::InvalidURIError) bad URI(is not URI?): ?gems="--source http://artifactory.domain.com/api/rubygems/rubygems" Successfully installed mixlib-cli-1.7.0 Successfully installed sensu-plugin-2.5.0
Source:
/Stage[main]/Sensu::Package/Package[sensu-plugin]/ensure

Will testing 2.53.0 shortly but just in case anyone else seeing these issues...

@cdenneen
Copy link
Contributor

2.53.0 still has same issue above exactly.
Was this only tested with linux? Maybe gem.bat can't take a --source parameter? or the quoting is what's throwing it off? @treydock @ghoneycutt any ideas?

@ghoneycutt
Copy link
Collaborator

Thanks @cdenneen for reporting this! Opened Issue #908 to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants