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

Le mardi 29 juillet 2014 16:20:23 UTC+2, Benjamin Cayzac a écrit :
>
> 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 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/aa4bf090-0c26-438b-9e86-1b58176b21b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to