Ingo Fischer
2012-May-10 21:43 UTC
[Puppet Users] install Rubygem-package on a machine without Rubygems preinstalled, "Provider gem is not functional on this host"
On a clean Debian system - without Rubygems installed - I want to install a Rubygem package (ruby-ldap) with Puppet. So the package has "gem" as package Provider. This is my manifest so far (I kept it simple): # test.pp Package { ensure => ''installed'' } package { ''rubygems'' : name => ''rubygems'', } package { ''libldap-ruby1.8'' : name => ''libldap-ruby1.8'', } package { ''libldap2-dev'' : name => ''libldap2-dev'', } package { ''libsasl2-dev'' : name => ''libsasl2-dev'', } package { ''libsasl2-modules-ldap'' : name => ''libsasl2-modules-ldap'', } # My Rubygem, with Provider type ''gem'' package { ''ruby-ldap'' : name => ''ruby-ldap'', provider => ''gem'', } Package [ ''rubygems'' ] -> Package [ ''ruby-ldap'' ] Package [ ''libldap2-dev'' ] -> Package [ ''ruby-ldap'' ] Package [ ''libsasl2-modules-ldap'' ] -> Package [ ''ruby-ldap'' ] When I test this manifest (with `puppet apply --noop test.pp`), I''m getting the following output: err: /Stage[main]//Package[ruby-ldap]: Provider gem is not functional on this host I also tried using classes and stages (doing the rubygem install in a stage before the gem install) but I always got the `Provider gem`-error (but maybe I just used the stages in a wrong way). How can I install Rubygems packages on a system without Rubygems preinstalled? [1]: https://groups.google.com/forum/?fromgroups#!topic/puppet-users/7DdudbY90cY -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/hDLJLMU1K3IJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ingo Fischer
2012-May-19 11:28 UTC
[Puppet Users] Re: install Rubygem-package on a machine without Rubygems preinstalled, "Provider gem is not functional on this host"
Since I''m getting no answer here, I get the impression that installing Rubygems with Puppet on a system without Rubygems preinstalled is not possible. Are there at least any workarounds? Am Donnerstag, 10. Mai 2012 23:43:58 UTC+2 schrieb Ingo Fischer:> > On a clean Debian system - without Rubygems installed - I want to install > a Rubygem package (ruby-ldap) with Puppet. So the package has "gem" as > package Provider. > > This is my manifest so far (I kept it simple): > > # test.pp > Package { ensure => ''installed'' } > > package { > ''rubygems'' : > name => ''rubygems'', > } > > package { > ''libldap-ruby1.8'' : > name => ''libldap-ruby1.8'', > } > > package { ''libldap2-dev'' : > name => ''libldap2-dev'', > } > > package { ''libsasl2-dev'' : > name => ''libsasl2-dev'', > } > > package { ''libsasl2-modules-ldap'' : > name => ''libsasl2-modules-ldap'', > } > > # My Rubygem, with Provider type ''gem'' > package { > ''ruby-ldap'' : > name => ''ruby-ldap'', > provider => ''gem'', > } > > Package [ ''rubygems'' ] -> Package [ ''ruby-ldap'' ] > Package [ ''libldap2-dev'' ] -> Package [ ''ruby-ldap'' ] > Package [ ''libsasl2-modules-ldap'' ] -> Package [ ''ruby-ldap'' ] > > When I test this manifest (with `puppet apply --noop test.pp`), I''m > getting the following output: > > err: /Stage[main]//Package[ruby-ldap]: Provider gem is not functional > on this host > > I also tried using classes and stages (doing the rubygem install in a > stage before the gem install) but I always got the `Provider gem`-error > (but maybe I just used the stages in a wrong way). > > How can I install Rubygems packages on a system without Rubygems > preinstalled? > > > [1]: > https://groups.google.com/forum/?fromgroups#!topic/puppet-users/7DdudbY90cY >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/AClis9xNaooJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nan Liu
2012-May-19 16:06 UTC
Re: [Puppet Users] Re: install Rubygem-package on a machine without Rubygems preinstalled, "Provider gem is not functional on this host"
On Sat, May 19, 2012 at 4:28 AM, Ingo Fischer <ingo.fischer@profitbricks.com> wrote:> Since I''m getting no answer here, I get the impression that installing > Rubygems with Puppet on a system without Rubygems preinstalled is not > possible. > > Are there at least any workarounds?This should be fixed in 2.7.8: http://projects.puppetlabs.com/issues/6907 What version are you using? Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ingo Fischer
2012-May-20 15:13 UTC
Re: [Puppet Users] Re: install Rubygem-package on a machine without Rubygems preinstalled, "Provider gem is not functional on this host"
Thanks for the issue, now I know that there at least has been an error in relation to my problem. But its strange, as I got the error with 2.7.13. I just retried it on another machine with 2.7.14 installed, there it works (successfully installed Rubygems and a Gem at once). So I''ll just upgrade to 2.7.14. Thanks again! Cheers, Ingo On Saturday, May 19, 2012 6:06:14 PM UTC+2, Nan Liu wrote:> > On Sat, May 19, 2012 at 4:28 AM, Ingo Fischer > <ingo.fischer@profitbricks.com> wrote: > > Since I''m getting no answer here, I get the impression that installing > > Rubygems with Puppet on a system without Rubygems preinstalled is not > > possible. > > > > Are there at least any workarounds? > > This should be fixed in 2.7.8: > http://projects.puppetlabs.com/issues/6907 > > What version are you using? > > Thanks, > > Nan >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/tJ-xn8PYrdYJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.