foreman installation questions

38 views
Skip to first unread message

Dan Bode

unread,
Sep 17, 2009, 6:39:56 AM9/17/09
to puppet...@googlegroups.com
Hi Ohad,

I wasnt able to install foreman over http from git using you installation instructions.

[user@machine local]$ git clone http://github.com/ohadlevy/foreman.git foreman2
Initialized empty Git repository in /usr/local/foreman2/.git/
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?

so I got the source from the master as a zip

I get the following error when running

rake db:migrate

rake aborted!
undefined method `to_label' for class `Host'
/usr/local/foreman/app/models/host.rb:19


I after moving the alias to after the method declaration it works fine

  # Returns the name of this host as a string
  # String: the host's name
  def to_label
    name
  end
  alias to_s to_label

do I have the wrong source version somehow?

regards,

Dan

Nicolas Arias

unread,
Sep 17, 2009, 7:08:40 AM9/17/09
to puppet...@googlegroups.com
a few days ago i got foreman from git and had the same problem.

i forgot to mention it.

Ohad Levy

unread,
Sep 17, 2009, 7:34:39 AM9/17/09
to puppet...@googlegroups.com
Hi Dan,
 
I've just copy paste the instructions from the wiki http://theforeman.org/wiki/foreman/Installation_instructions, and everything seems fine.
 
I do know that http cloneing from github could not work well, it depends a lot on your http proxy as well.
if you choose to download from github using the download link, it will not provide all additional sub modules which are requried for Foreman
(you would need to do git submodules command)
 
thats why I've added in the foreman website the ability to download the latest stable version (link from the installation instruction above).
 
nevertheless, the latest dev version has support for puppet reports, so it might worth using it..
 
cheers,
Ohad

Reply all
Reply to author
Forward
0 new messages