[Puppet Users] Re: Foreman -- Reporting

2010-06-10 Thread CraftyTech
Thanks for responses everyone. It's fine now. Using the subdir was hurting me, i.g, RailsBaseURI /foreman, as I couldn't put it in the url field of foreman.rb. Now that I took it off, all needed to do was to redirect the url to https://host:443. It works fine now. Cheers, Henry On Jun 9, 8:22 

[Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread Chuck
What happens if you have foreman listen say on port 3000 with passenger and have ssl disabled? On Jun 9, 3:29 pm, CraftyTech wrote: > /etc/httpd/conf.d/foreman.conf: > >   ServerName hostnameXYZ >   ServerAlias foreman > >   RailsAutoDetect On >   DocumentRoot /var/www/html >   RailsBaseURI /for

Re: [Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread Jacob Hunt
Looks like my config, except I added the following to see my reports Alias /report /var/lib/puppet/rrd/ PassengerEnabled off Options Indexes Order deny,allow Allow from all On Wed, Jun 9, 2010 at 2:15 PM, CraftyTech wrote: > /etc/httpd/conf.d/foreman.conf: > > ServerN

[Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread CraftyTech
/etc/httpd/conf.d/foreman.conf: ServerName hostnameXYZ ServerAlias foreman RailsAutoDetect On DocumentRoot /var/www/html RailsBaseURI /foreman # Use puppet certificates for SSL SSLEngine on SSLCertificateFile /var/lib/puppet/ssl/certs/ hostnameXYZ.pem SSLCertificateKey

[Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread CraftyTech
/etc/httpd/conf.d/foreman.conf: ServerName hostnameXYZ ServerAlias foreman RailsAutoDetect On DocumentRoot /var/www/html RailsBaseURI /foreman # Use puppet certificates for SSL SSLEngine on SSLCertificateFile /var/lib/puppet/ssl/certs/ hpjs01.isn.instinet.com.pem SSLCe

[Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread CraftyTech
/etc/httpd/conf.d/foreman.conf: ServerName hostnameXYZ ServerAlias foreman RailsAutoDetect On DocumentRoot /var/www/html RailsBaseURI /foreman # Use puppet certificates for SSL SSLEngine on SSLCertificateFile /var/lib/puppet/ssl/certs/ hpjs01.isn.instinet.com.pem SSLCe

Re: [Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread Jonathan A. Booth
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

[Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread CraftyTech
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:/

Re: [Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread Jonathan A. Booth
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 an

[Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread Ryan
On RHEL, using the rpm packages for foreman and puppet, I had to copy / usr/share/foreman/extras/puppet/foreman/files/foreman-report.rb to / usr/lib/ruby/site_ruby/1.8/puppet/foreman.rb and everything works swimmingly. Also, uncomment #reports=log, foreman in puppetmasterd... it may still work in

[Puppet Users] Re: Foreman -- Reporting

2010-06-09 Thread CraftyTech
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 mad