With reports=log,foreman you'll see them under /var/lib/puppet/reports even if they aren't actually getting to foreman itself. Executability of foreman.rb won't factor in this working or not.

The code in foreman.rb is probably connecting directly to foreman on http://(local?)host:3000. You may need to modify that file to connect to http://host:80 or via https. Alternately you could just have passenger listen to said port (localhost:3000).

Note I don't strictly know that's true of Foreman. I'm guessing, based on my experiences with dashboard and passenger.


On 06/09/2010 01:52 PM, CraftyTech wrote:
My issue is basically, that I'm running foreman under passenger, and
this config seems to break reporting.  Yesterday,I was using webbrick
and it was working fine, with the URL of foreman.rb pointing to
http://host:3000.  Today with passenger, I'm trying to point it to
either http://host or https://host.  Neither way has worked so far.
Again, the reports are coming in, I'm just not able to display them
under foreman.

Thanks,


On Jun 9, 11:14 am, "Jonathan A. Booth"<jbo...@illinois.edu>  wrote:
For what it is worth, to solve a similar problem with dashboard
(distributing puppet_dashboard.rb for reporting), I just stuck it in
modules/dashboard/lib/puppet_dashboard.rb with puppet.conf:
pluginsync=true. Then puppet distributes it automatically into a lib
directory and things work nice and happy.

On 06/09/2010 10:13 AM, CraftyTech wrote:

Correction: I copied the foreman.rb to /usr/lib/ruby/site_ruby/1.8/
puppet/reports/foreman.rb from extras/puppet/foreman/files/foreman-
report.rb.  The instructions called for the file to be copied to /usr/
lib/ruby/1.8/puppet/reports, but that's not the directory structure
that I have.  I also made the file executable.

Thanks,

On Jun 9, 11:09 am, CraftyTech<hmmed...@gmail.com>    wrote:
Hello All,

       I don't seem to be able to get reports to display on the foreman
interface.  I copied extras/puppet/foreman/files/foreman-report.rb to /
usr/lib/ruby/site_ruby/1.8/puppet/reportsforeman.rb, instead of /usr/
lib/ruby/1.8/puppet/reports/foreman.rb. Config: Centos5.4, Apache/
Passenger, Puppet 0.25.4.

       The reports are coming from the clients, because I can see them
in /var/lib/puppet/reports.  I just don't seem to be able to display
them on Foreman.  Here's my puppet.conf:

[main]
      vardir = /var/lib/puppet
      logdir = /var/log/puppet
      rundir = /var/run/puppet
      reports= log, foreman

[puppetmasterd]
      ssl_client_header = SSL_CLIENT_S_DN
      ssl_client_verify_header = SSL_CLIENT_VERIFY
      modulepath = $confdir/modules
      #reports=log, foreman
      storeconfigs = true
      dbadapter = mysql
      dbuser = app_puppet
      dbpassword = password
      dbserver = localhost
      dbsocket = /sql/mysql/mysql.sock
      rrddir=/var/lib/puppet/rrd
      rrdinterval=$runinterval
      rrdgraph=true

[puppetd]
      classfile = $vardir/classes.txt
      report = true
      localconfig = $vardir/localconfig

What am I missing here?  Thanks,

Henry


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to