Ask Your Question
0

Rake command not working in puppet 3.8

asked 2015-11-12 00:07:12 -0500

LokeshN gravatar image

updated 2015-12-20 23:17:45 -0500

rake command is throwing error in puppet 3.8. The following is the command and the error.

>/usr/bin/rake -f --trace /usr/share/puppet-dashboard/Rakefile RAILS_ENV=production nodegroup:listclasses["testgroup"]
(in /usr/share/puppet-dashboard)
** Invoke /usr/share/puppet-dashboard/Rakefile (first_time, not_needed)
rake aborted!
Don't know how to build task 'nodegroup:listclasses'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1727:in `[]'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2049:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

Any idea what is the issue?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-12-20 22:34:20 -0500

Anandk gravatar image

Hows you rake file setup? Run the rake with the name of the rake class/task.

edit flag offensive delete link more
0

answered 2015-12-20 23:30:18 -0500

I think you have the arguments in the wrong order. The Rakefile filename should come immediately after the -f argument. Does this work:

/usr/bin/rake -f /usr/share/puppet-dashboard/Rakefile --trace RAILS_ENV=production nodegroup:listclasses["testgroup"]
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-11-12 00:07:12 -0500

Seen: 107 times

Last updated: Dec 20 '15