FAQ
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.

Search Discussions

  • Ingo Fischer at May 19, 2012 at 11:28 am
    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 at May 19, 2012 at 4:06 pm

    On Sat, May 19, 2012 at 4:28 AM, Ingo Fischer 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 at May 20, 2012 at 3:13 pm
    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
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedMay 11, '12 at 4:30p
activeMay 20, '12 at 3:13p
posts4
users2
websitepuppetlabs.com

2 users in discussion

Ingo Fischer: 3 posts Nan Liu: 1 post

People

Translate

site design / logo © 2022 Grokbase