Puppet-dashboard issues

716 views
Skip to first unread message

Bouny

unread,
Jul 29, 2014, 10:20:23 AM7/29/14
to puppet...@googlegroups.com
Hi !

(sorry for my poor english)


My puppetmaster 3.4.3 run on Ubuntu 14.04 LTS

I've just manage to replace WEBrick, Puppet use Apache/Passenger to work
now.

I'm a newbie on this, so i've setup Puppet with different docs found on
internet. I've started with "apt-get" for the basic install.

For Passenger, I tried gems. Ruby version is 1.9.1, I saw that is the source
of many problems but i'm a newbie on linux too... I don't know if a downgrad
of ruby is a good idea or not, or if it is necessary.

Puppet works fine, but my problem concern dashboard.

So here is my problem :

I've configured with success the vhost for apache.
I've created the database on mysql.

but when i run "rake RAILS_ENV=production db:migrate" i've got an error :
Warning: Rails rake tasks currently unavailable because we can't find the
'rails' gem
rake aborted!
Don't know how to build task 'db:migrate'

trace :

/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task_manager.rb:62:in `[]'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:149:in
`invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `block
(2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `block
in top_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:115:in
`run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:100:in
`top_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in
run'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in
`standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'


Any idea ?

thx


Benjamin Cayzac

unread,
Jul 30, 2014, 6:10:28 AM7/30/14
to puppet...@googlegroups.com
Hi !

Problem fixed !

Syntax wasn't good, i found on old doc but i've search again and i've found another syntaxe to do the same thing : "bundle exec rake db:migrate RAILS_ENV=production"

And it works ! the database has been generated.

I just want to know how to use the dashboard db with puppet. And if it's possible to fill that db automaticaly when a puppet agent connects itself to the puppetmaster.
Fill the nodes table and reports table etc.

More information on my configuration :
Passenger : 4.0
Puppet-dashboard : 2.0 Beta
i've just changed puppetmaster : 3.6

thx
Reply all
Reply to author
Forward
0 new messages