Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid resource type rvm_wrapper #55

Closed
trustarun opened this issue Aug 26, 2014 · 3 comments
Closed

Invalid resource type rvm_wrapper #55

trustarun opened this issue Aug 26, 2014 · 3 comments

Comments

@trustarun
Copy link

This is my manifest rvm.pp

class thirdpillar::rvm(
$ruby_version = 'ruby-1.9.3-p547',
$gemset_name = 'ruby-1.9.3-p547@melbourne',
$wrapper_name = "melbourne",
) {

if $::osfamily == 'RedHat' {
  class { 'epel':
  before => Class['rvm'],
  }
}
else{
    class { 'rvm': }
}

rvm_system_ruby {
  "${ruby_version}":
  ensure      => 'present',
  default_use => true,
}

rvm_gemset {
  "${gemset_name}":
  ensure  => present,
  require => Rvm_system_ruby["${ruby_version}"],
}

rvm_wrapper {
  "${wrapper_name}":
   target_ruby => "${ruby_version}",
   prefix      => 'bootup',
   ensure      => present,
   require     => Rvm_system_ruby["${ruby_version}"],
}

rvm_alias {
  "${wrapper_name}":
   target_ruby => "${ruby_version}",
   ensure      => present,
   require     => Rvm_system_ruby["${ruby_version}"],
}

}

Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type rvm_wrapper at /etc/puppetlabs/puppet/modules/thirdpillar/manifests/rvm.pp:33 on node learn.localdomain

It is recognizing all other resource type like rvm_system_ruby, rvm_gemset, rvm_alias but could not able to recognize rvm_wrapper

@carlossg
Copy link
Member

what version of the module are you using? you need at least v1.4.3

@trustarun
Copy link
Author

The module listing showing below version:

___ maestrodev-rvm (v1.1.6)

Is the command below
puppet module install maestrodev-rvm

do not install current version

@trustarun
Copy link
Author

Thanks,
I installed by directly downloading the module and it solved the issue
$wget https://forgeapi.puppetlabs.com/v3/files/maestrodev-rvm-1.6.4.tar.gz
$ tar -xvf maestrodev-rvm-1.6.4.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants