blt04 / puppet-rvm

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

class lookup problem #36

Closed peterhorvath closed 12 years ago

peterhorvath commented 12 years ago

Sorry about that! I am pretty new to puppet-rvm. I was using this module with puppet 2.6 without any problem, but since I upgraded to puppet 2.7 I had to upgrade rvm module too, and now I am getting this error message:

Could not find declared class rvm::dependencies at /etc/puppet/modules/rvm/manifests/init.pp:8

Ubuntu 10.04 with backport 2.7.1 puppet. Could you point me to the right direction?

blt04 commented 12 years ago

There have been a few changes to the module lately. Could you try removing import rvm and include rvm::system from your manifest files (if they exist) and replace with include rvm?

peterhorvath commented 12 years ago

I've already did that, my current node config in the site.pp looks like this:

node eurwebwww06 { include rvm

    rvm::system_user{'username':;

                     'username':;

                     'username':;
    }

}

peterhorvath commented 12 years ago

This is the full error message from a trace, debug run:

info: Loading facts in rvm_installed debug: importing '/etc/puppet/modules/apache2/manifests/init.pp' in environment production debug: importing '/etc/puppet/modules/apache2/manifests/mysql.pp' in environment production debug: importing '/etc/puppet/modules/apache2/manifests/vhost.pp' in environment production debug: importing '/etc/puppet/modules/nginx/manifests/init.pp' in environment production debug: importing '/etc/puppet/modules/nginx/manifests/vhost.pp' in environment production debug: importing '/etc/puppet/modules/deploy/manifests/init.pp' in environment production debug: importing '/etc/puppet/modules/deploy/manifests/rsyslog.pp' in environment production debug: Automatically imported deploy::rsyslog from deploy/rsyslog into production debug: Failed to load library 'rubygems' for feature 'rubygems' debug: Failed to load library 'selinux' for feature 'selinux' debug: importing '/etc/puppet/modules/deploy/manifests/kerberos.pp' in environment production debug: Automatically imported deploy::kerberos from deploy/kerberos into production debug: importing '/etc/puppet/modules/deploy/manifests/kerberos/srp.pp' in environment production debug: Automatically imported deploy::kerberos::srp from deploy/kerberos/srp into production debug: importing '/etc/puppet/modules/rvm/manifests/init.pp' in environment production debug: Automatically imported rvm from rvm into production /usr/lib/ruby/1.8/puppet/resource.rb:207:in initialize' /usr/lib/ruby/1.8/puppet/parser/resource.rb:108:ininitialize' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:44:in new' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:44:inevaluate' /usr/lib/ruby/1.8/puppet/util/errors.rb:35:in exceptwrap' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:43:inevaluate' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:42:in collect' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:42:inevaluate' /usr/lib/ruby/1.8/puppet/parser/lexer.rb:179:in collect' /usr/lib/ruby/1.8/puppet/parser/ast/branch.rb:16:ineach' /usr/lib/ruby/1.8/puppet/parser/ast/branch.rb:15:in each' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:25:incollect' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:25:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:insafeevaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:ineach' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:insafeevaluate' /usr/lib/ruby/1.8/puppet/parser/ast/ifstatement.rb:25:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:insafeevaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:ineach' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:insafeevaluate' /usr/lib/ruby/1.8/puppet/resource/type.rb:74:in evaluate_code' /usr/lib/ruby/1.8/puppet/parser/resource.rb:71:inevaluate' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:165:in evaluate_classes' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:152:ineach' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:152:in evaluate_classes' /usr/lib/ruby/1.8/puppet/parser/functions/include.rb:6:infunction_include' /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in send' /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:inevaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in safeevaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:inevaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in each' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:inevaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in safeevaluate' /usr/lib/ruby/1.8/puppet/resource/type.rb:74:inevaluate_code' /usr/lib/ruby/1.8/puppet/parser/resource.rb:71:in evaluate' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:236:inevaluate_ast_node' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:107:in compile' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:27:incompile' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:78:in compile' /usr/lib/ruby/1.8/puppet/util.rb:199:inbenchmark' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:76:in compile' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:35:infind' /usr/lib/ruby/1.8/puppet/indirector/indirection.rb:188:in find' /usr/lib/ruby/1.8/puppet/application/apply.rb:198:inmain' /usr/lib/ruby/1.8/puppet/application/apply.rb:134:in run_command' /usr/lib/ruby/1.8/puppet/application.rb:307:inrun' /usr/lib/ruby/1.8/puppet/application.rb:411:in hook' /usr/lib/ruby/1.8/puppet/application.rb:307:inrun' /usr/lib/ruby/1.8/puppet/application.rb:402:in exit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:307:inrun' /usr/lib/ruby/1.8/puppet/util/command_line.rb:69:in execute' /usr/bin/puppet:4 /usr/lib/ruby/1.8/puppet/parser/compiler.rb:30:incompile' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:78:in compile' /usr/lib/ruby/1.8/puppet/util.rb:199:inbenchmark' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:76:in compile' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:35:infind' /usr/lib/ruby/1.8/puppet/indirector/indirection.rb:188:in find' /usr/lib/ruby/1.8/puppet/application/apply.rb:198:inmain' /usr/lib/ruby/1.8/puppet/application/apply.rb:134:in run_command' /usr/lib/ruby/1.8/puppet/application.rb:307:inrun' /usr/lib/ruby/1.8/puppet/application.rb:411:in hook' /usr/lib/ruby/1.8/puppet/application.rb:307:inrun' /usr/lib/ruby/1.8/puppet/application.rb:402:in exit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:307:inrun' /usr/lib/ruby/1.8/puppet/util/command_line.rb:69:in `execute' /usr/bin/puppet:4 Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class rvm::dependencies at /etc/puppet/modules/rvm/manifests/init.pp:8 on node eurwebwww06

peterhorvath commented 12 years ago

Sorry it was my mistake. I am using git to push changes to hosts instead of puppet master/client build. And the new rvm modul changes wasnt properly push to the client.

Thank you for the eye opener comment