On a clean Debian system - without Rubygems installed - I want to install the Rubygem package with Puppet (version 2.7.13). Thus, the package has a "gem" as a 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', }
When I test this manifest (with puppet apply --noop test.pp
), I get the following output:
err: /Stage[main]//Package[ruby-ldap]: Provider gem is not functional on this host
I broke through the network and found some information about Puppet + Rubygems (for example this ), but none of them helped me solve my problem, since none of them gave a real solution with some code.
I also tried using classes and steps (doing rubygem installation in the step before installing gem), but I always got Provider gem
-error (but maybe I just used the steps the wrong way).
Can someone provide me with a working manifest that installs rubygems and any rubygem on a system without Rubygems, or at least the latest tips on how to get there?
source share