blt04 / puppet-rvm

A puppet module for installing and using RVM (Ruby Version Manager)
Other
242 stars 280 forks source link

Cannot install gems: Resource type rvm_gem does not support parameter false #13

Closed evanstachowiak closed 13 years ago

evanstachowiak commented 13 years ago

Puppet 2.6.2 / Ubuntu 10.04

I am trying to install bundler from nodes.pp as specified in the README. I am getting this error: err: Could not run Puppet configuration client: Resource type rvm_gem does not support parameter false

I include this in nodes.pp:


  include rvm::system

  if $rvm_installed == "true" {
      rvm_system_ruby {
           'ruby-1.9.2-p180-fastrequire':
                    ensure => 'present',
                    default_use => true;
           'ruby-1.8.7':
                    ensure => 'present',
                    default_use => false;
      }
  }

  rvm_gem {
      'bundler':
      ruby_version => 'ruby-1.9.2-p180-fastrequire',
      ensure => '1.0.13',
      require => Rvm_system_ruby['ruby-1.9.2-p180-fastrequire'];
  }
blt04 commented 13 years ago

Can you try Puppet version 2.6.7 or higher? I think you are hitting Puppet bug #5661.

If that works I'll upgrade the readme to specify the minimum puppet version.

evanstachowiak commented 13 years ago

I upgraded to puppet 2.7.1. It is working now, thanks.

AgoristRadio commented 11 years ago

This bug appears to be back in puppet 2.7.18. Can I monkey patch this for now or any other tips? Thanks.