Jira (PUP-620) (PR 2429) Add install_options to gem provider
Title: Message Title Mikhail T. commented on PUP-620 Re: (PR 2429) Add install_options to gem provider I can't get this to work either: package {'sensu': ensure => installed, provider=> 'gem22', install_options => ['--clear-sources', {'--source' => $gemsrc}], } While Puppet is running, I can see the gem's complete command-line – neither of the two install-options are on it: /opt/rh/rh-ruby22/root/usr/bin/ruby /opt/rh/rh-ruby22/root/usr/bin/gem install --no-rdoc --no-ri sensu The gem22 is our own little provider here, which descends from the official Puppet's gem by replacing the gemcmd: require 'puppet/provider/package'
Jira (PUP-620) (PR 2429) Add install_options to gem provider
Title: Message Title Charlie Sharpsteen commented on an issue Re: (PR 2429) Add install_options to gem provider Jason Ashby: The install_options array is expected to be a list containing single arguments and/or hashes of flag = value tuples. Your manifest is failing because you are presenting both components of the proxy option as single value which is being quoted and passed as such. Try: install_options = [{--http-proxy = http://webproxy.example.com:8080}] Add Comment Puppet / PUP-620 (PR 2429) Add install_options to gem provider h2. added install_options to gem provider. now you can do... install_options... * Author: Mike mike.mogha...@gmail.com * Company: * Github ID: [mmoghadas|https://github.com/mmoghadas] * [Pull Request 2012 Discussion|https://github.com/puppetlabs/puppet/pull/2012] * [Pull Request 2012 File Diff|https://github.com/puppetlabs/puppet/pull/2012/files... This
Jira (PUP-620) (PR 2429) Add install_options to gem provider
Title: Message Title Jason Ashby commented on an issue Re: (PR 2429) Add install_options to gem provider Hi Charlie Sharpsteen, I'm still seeing the quoting issue on puppet 3.7.1. $ sudo puppet agent -t Notice: Ignoring --listen on onetime run Info: Retrieving pluginfacts Notice: /File[/var/lib/puppet/facts.d]/mode: mode changed '0755' to '2775' Info: Retrieving plugin Info: Loading facts Info: Loading facts Info: Caching catalog for foo.example.com Info: Applying configuration version '1413212488' Error: Execution of '/usr/bin/gem install --no-rdoc --no-ri sys-proctable --http-proxy http://webproxy.example.com:8080' returned 2: ERROR: Could not find a valid gem '--http-proxy http://webproxy.example.com:8080' (= 0) in any repository
Jira (PUP-620) (PR 2429) Add install_options to gem provider
Title: Message Title Charlie Sharpsteen commented on an issue Re: (PR 2429) Add install_options to gem provider Jason Ashby: This patch shipped in 3.6.0 and is available from that point onward. 3.7.0, 3.7.1, etc. already include it. Add Comment Puppet / PUP-620 (PR 2429) Add install_options to gem provider h2. added install_options to gem provider. now you can do... install_options... * Author: Mike mike.mogha...@gmail.com * Company: * Github ID: [mmoghadas|https://github.com/mmoghadas] * [Pull Request 2012 Discussion|https://github.com/puppetlabs/puppet/pull/2012] * [Pull Request 2012 File Diff|https://github.com/puppetlabs/puppet/pull/2012/files... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-620) (PR 2429) Add install_options to gem provider
Title: Message Title Jason Ashby commented on an issue Re: (PR 2429) Add install_options to gem provider Excellent, thanks. You said 3.6.0...do you mean it will ship in the next Puppet (3.7.2)? Add Comment Puppet / PUP-620 (PR 2429) Add install_options to gem provider h2. added install_options to gem provider. now you can do... install_options... * Author: Mike mike.mogha...@gmail.com * Company: * Github ID: [mmoghadas|https://github.com/mmoghadas] * [Pull Request 2012 Discussion|https://github.com/puppetlabs/puppet/pull/2012] * [Pull Request 2012 File Diff|https://github.com/puppetlabs/puppet/pull/2012/files... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-620) (PR 2429) Add install_options to gem provider
Title: Message Title Jason Ashby commented on an issue Re: (PR 2429) Add install_options to gem provider This doesn't seem to work very well for me for installing a gem. I'm on puppet 3.6.1, CentOS 6.5. I have the following: package { 'fpm': ensure = 'latest', provider = 'gem', install_options = ['--http-proxy http://webproxy.example.com:8080'], } $ sudo puppet agent -t ...snip... Info: Applying configuration version '1410792649' Error: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri fpm --http-proxy http://webproxy.example.com:8080' returned 1: ERROR: Could not find a valid gem 'fpm' (= 0) in any repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz) Wrapped exception: Execution of '/usr/bin/gem install --no-rdoc --no-ri fpm --http-proxy http://webproxy.example.com:8080' returned 1: ERROR: Could not find a valid gem 'fpm' (= 0) in any repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz) Error: /Stage[main]/Fpm/Package[fpm]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri fpm --http-proxy http://webproxy.example.com:8080' returned 1: ERROR: Could not find a valid gem 'fpm' (= 0) in any repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz) However, running the 'gem install' it directly from the shell on the host works fine. I believe its something with the quotes being inserted into the command? $ sudo /usr/bin/gem install --no-rdoc --no-ri fpm --http-proxy http://webproxy.example.com:8080 Fetching: json-1.8.1.gem (100%) Building native extensions. This could take a while... ... ... Fetching: cabin-0.6.1.gem (100%) Fetching: backports-3.6.0.gem (100%) Fetching: arr-pm-0.0.9.gem (100%) Fetching: clamp-0.6.3.gem (100%) Fetching: ffi-1.9.3.gem (100%) Building native extensions. This could take a while... ... . Fetching: childprocess-0.5.3.gem (100%) Fetching: fpm-1.2.0.gem (100%) Successfully installed json-1.8.1 Successfully installed cabin-0.6.1 Successfully installed backports-3.6.0 Successfully installed arr-pm-0.0.9 Successfully installed clamp-0.6.3 Successfully installed ffi-1.9.3 Successfully installed childprocess-0.5.3 Successfully installed fpm-1.2.0 8 gems installed Running it directly from the shell EXACTLY as puppet displayed it (with quotes) gives a different error than puppet spits out: $ /usr/bin/gem install --no-rdoc --no-ri fpm --http-proxy http://webproxy.example.com:8080 ERROR: While executing gem ... (OptionParser::InvalidOption) invalid
Jira (PUP-620) (PR 2429) Add install_options to gem provider
Title: Message Title Peter Huene updated an issue Puppet / PUP-620 (PR 2429) Add install_options to gem provider Change By: Peter Huene Summary: (PR 2012 2429 )Addinstall_optionstogemprovider Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.