Closed peterhorvath closed 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
?
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':;
}
}
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:in
initialize'
/usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:44:in new' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:44:in
evaluate'
/usr/lib/ruby/1.8/puppet/util/errors.rb:35:in exceptwrap' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:43:in
evaluate'
/usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:42:in collect' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:42:in
evaluate'
/usr/lib/ruby/1.8/puppet/parser/lexer.rb:179:in collect' /usr/lib/ruby/1.8/puppet/parser/ast/branch.rb:16:in
each'
/usr/lib/ruby/1.8/puppet/parser/ast/branch.rb:15:in each' /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:25:in
collect'
/usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:25:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in
safeevaluate'
/usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in
each'
/usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in
safeevaluate'
/usr/lib/ruby/1.8/puppet/parser/ast/ifstatement.rb:25:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in
safeevaluate'
/usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in
each'
/usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in evaluate' /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in
safeevaluate'
/usr/lib/ruby/1.8/puppet/resource/type.rb:74:in evaluate_code' /usr/lib/ruby/1.8/puppet/parser/resource.rb:71:in
evaluate'
/usr/lib/ruby/1.8/puppet/parser/compiler.rb:165:in evaluate_classes' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:152:in
each'
/usr/lib/ruby/1.8/puppet/parser/compiler.rb:152:in evaluate_classes' /usr/lib/ruby/1.8/puppet/parser/functions/include.rb:6:in
function_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:in
evaluate'
/usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in safeevaluate' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:in
evaluate'
/usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in each' /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in
evaluate'
/usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in safeevaluate' /usr/lib/ruby/1.8/puppet/resource/type.rb:74:in
evaluate_code'
/usr/lib/ruby/1.8/puppet/parser/resource.rb:71:in evaluate' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:236:in
evaluate_ast_node'
/usr/lib/ruby/1.8/puppet/parser/compiler.rb:107:in compile' /usr/lib/ruby/1.8/puppet/parser/compiler.rb:27:in
compile'
/usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:78:in compile' /usr/lib/ruby/1.8/puppet/util.rb:199:in
benchmark'
/usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:76:in compile' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:35:in
find'
/usr/lib/ruby/1.8/puppet/indirector/indirection.rb:188:in find' /usr/lib/ruby/1.8/puppet/application/apply.rb:198:in
main'
/usr/lib/ruby/1.8/puppet/application/apply.rb:134:in run_command' /usr/lib/ruby/1.8/puppet/application.rb:307:in
run'
/usr/lib/ruby/1.8/puppet/application.rb:411:in hook' /usr/lib/ruby/1.8/puppet/application.rb:307:in
run'
/usr/lib/ruby/1.8/puppet/application.rb:402:in exit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:307:in
run'
/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:in
compile'
/usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:78:in compile' /usr/lib/ruby/1.8/puppet/util.rb:199:in
benchmark'
/usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:76:in compile' /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:35:in
find'
/usr/lib/ruby/1.8/puppet/indirector/indirection.rb:188:in find' /usr/lib/ruby/1.8/puppet/application/apply.rb:198:in
main'
/usr/lib/ruby/1.8/puppet/application/apply.rb:134:in run_command' /usr/lib/ruby/1.8/puppet/application.rb:307:in
run'
/usr/lib/ruby/1.8/puppet/application.rb:411:in hook' /usr/lib/ruby/1.8/puppet/application.rb:307:in
run'
/usr/lib/ruby/1.8/puppet/application.rb:402:in exit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:307:in
run'
/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
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
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?