Jagga Soorma
2013-Feb-07 21:50 UTC
[Puppet Users] Unable to send puppet reports to foreman
Hi Guys, I am a new puppet user and trying to see the different options for reporting. I was able to setup and use puppet-dashboard just fine but can''t seem to now get reports sent to foreman. Here is what my setup looks like: puppet server: ssfpuppetd01 foreman server: ssftmand01 I have copied foreman-report.rb to the /usr/lib/ruby/site_ruby/1.8/puppet/reports directory on my puppet server ssfpuppetd01. The only thing that I changed in the foreman-report.rb file is the url: $foreman_url=''http://ssftmand01:3000'' Here is my puppet.conf on my puppet server: [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl [agent] classfile = $vardir/classes.txt localconfig = $vardir/localconfig [master] reports = log, foreman On my foreman server ssftmand01 I installed foreman and mysql db. I have updated the /etc/foreman/settings.yaml and /etc/foreman/database.yaml files. Here is my settings.yaml file: :unattended: false :login: false :require_ssl: false :locations_enabled: false :organizations_enabled: false :support_jsonp: false :puppet_server: ssfpuppetd01 :email_reply_address: Foreman-noreply@gene.com I have started the foreman services on ssftmand01 but it has not puppet services running. Not sure if that is also needed. With this setup I still can''t seem to get any reports in foreman. I am pretty sure that I am missing something here and would really appreciate some help to get this to work. I want to use foreman just as a reporting tool for puppet and would not like to use the provisioning options. Thanks. -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Jagga Soorma
2013-Feb-07 21:52 UTC
[Puppet Users] Unable to send puppet reports to foreman
Hi Guys, I am a new puppet user and trying to see the different options for reporting. I was able to setup and use puppet-dashboard just fine but can''t seem to now get reports sent to foreman. Here is what my setup looks like: puppet server: ssfpuppetd01 foreman server: ssftmand01 I have copied foreman-report.rb to the /usr/lib/ruby/site_ruby/1.8/ puppet/reports directory on my puppet server ssfpuppetd01. The only thing that I changed in the foreman-report.rb file is the url: $foreman_url=''http://ssftmand01:3000'' Here is my puppet.conf on my puppet server: [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl [agent] classfile = $vardir/classes.txt localconfig = $vardir/localconfig [master] reports = log, foreman On my foreman server ssftmand01 I installed foreman and mysql db. I have updated the /etc/foreman/settings.yaml and /etc/foreman/database.yaml files. Here is my settings.yaml file: :unattended: false :login: false :require_ssl: false :locations_enabled: false :organizations_enabled: false :support_jsonp: false :puppet_server: ssfpuppetd01 :email_reply_address: Foreman-noreply@XYZ.com <Foreman-noreply@gene.com> I have started the foreman services on ssftmand01 but it has not puppet services running. Not sure if that is also needed. With this setup I still can''t seem to get any reports in foreman. I am pretty sure that I am missing something here and would really appreciate some help to get this to work. I want to use foreman just as a reporting tool for puppet and would not like to use the provisioning options. Thanks. -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Jagga Soorma
2013-Feb-07 22:54 UTC
[Puppet Users] Re: Unable to send puppet reports to foreman
Nevermind, got it to work. Looks like I messed up the renaming of that file. I moved it to foreman.rb instead of foreman-report.rb and seems to be working now. Will try some other things and see how this works. Thanks. On Thursday, February 7, 2013 1:52:18 PM UTC-8, Jagga Soorma wrote:> > Hi Guys, > > I am a new puppet user and trying to see the different options for > reporting. I was able to setup and use puppet-dashboard just fine but > can''t seem to now get reports sent to foreman. Here is what my setup looks > like: > > puppet server: ssfpuppetd01 > foreman server: ssftmand01 > > I have copied foreman-report.rb to the /usr/lib/ruby/site_ruby/1.8/ > puppet/reports directory on my puppet server ssfpuppetd01. The only thing > that I changed in the foreman-report.rb file is the url: > > $foreman_url=''http://ssftmand01:3000'' > > Here is my puppet.conf on my puppet server: > > [main] > logdir = /var/log/puppet > rundir = /var/run/puppet > ssldir = $vardir/ssl > > [agent] > classfile = $vardir/classes.txt > localconfig = $vardir/localconfig > > [master] > reports = log, foreman > > On my foreman server ssftmand01 I installed foreman and mysql db. I have > updated the /etc/foreman/settings.yaml and /etc/foreman/database.yaml > files. Here is my settings.yaml file: > > :unattended: false > :login: false > :require_ssl: false > :locations_enabled: false > :organizations_enabled: false > :support_jsonp: false > :puppet_server: ssfpuppetd01 > :email_reply_address: Foreman-noreply@XYZ.com <Foreman-noreply@gene.com> > > I have started the foreman services on ssftmand01 but it has not puppet > services running. Not sure if that is also needed. With this setup I > still can''t seem to get any reports in foreman. I am pretty sure that I am > missing something here and would really appreciate some help to get this to > work. I want to use foreman just as a reporting tool for puppet and would > not like to use the provisioning options. > > Thanks. >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
David Schmitt
2013-Feb-08 19:40 UTC
Re: [Puppet Users] Unable to send puppet reports to foreman
On 2013-02-07 22:50, Jagga Soorma wrote:> Hi Guys, > > I am a new puppet user and trying to see the different options for > reporting. I was able to setup and use puppet-dashboard just fine but > can''t seem to now get reports sent to foreman. Here is what my setup > looks like: > > puppet server: ssfpuppetd01 > foreman server: ssftmand01 > > I have copied foreman-report.rb to the > /usr/lib/ruby/site_ruby/1.8/puppet/reports directory on my puppet server > ssfpuppetd01. The only thing that I changed in the foreman-report.rb > file is the url: > > $foreman_url=''http://ssftmand01:3000'' > > Here is my puppet.conf on my puppet server: > > [main] > logdir = /var/log/puppet > rundir = /var/run/puppet > ssldir = $vardir/ssl > > [agent] > classfile = $vardir/classes.txt > localconfig = $vardir/localconfig > > [master] > reports = log, foreman > > On my foreman server ssftmand01 I installed foreman and mysql db. I have > updated the /etc/foreman/settings.yaml and /etc/foreman/database.yaml > files. Here is my settings.yaml file: > > :unattended: false > :login: false > :require_ssl: false > :locations_enabled: false > :organizations_enabled: false > :support_jsonp: false > :puppet_server: ssfpuppetd01 > :email_reply_address: Foreman-noreply@gene.com > > I have started the foreman services on ssftmand01 but it has not puppet > services running. Not sure if that is also needed. With this setup I > still can''t seem to get any reports in foreman. I am pretty sure that I > am missing something here and would really appreciate some help to get > this to work. I want to use foreman just as a reporting tool for puppet > and would not like to use the provisioning options.What errors are you experiencing? What versions of puppet and foreman are you running? Have you restarted the puppetmaster/httpd after installing and configuring the foreman report? D. -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
for the record I''m reply to this old thread. in the setting page, change the trusted_puppetmaster_hosts to include your puppet hostname. eg: [''ssfpuppetd01''] Le vendredi 8 février 2013 20:40:41 UTC+1, David Schmitt a écrit :> > On 2013-02-07 22:50, Jagga Soorma wrote: > > Hi Guys, > > > > I am a new puppet user and trying to see the different options for > > reporting. I was able to setup and use puppet-dashboard just fine but > > can''t seem to now get reports sent to foreman. Here is what my setup > > looks like: > > > > puppet server: ssfpuppetd01 > > foreman server: ssftmand01 > > > > I have copied foreman-report.rb to the > > /usr/lib/ruby/site_ruby/1.8/puppet/reports directory on my puppet server > > ssfpuppetd01. The only thing that I changed in the foreman-report.rb > > file is the url: > > > > $foreman_url=''http://ssftmand01:3000'' > > > > Here is my puppet.conf on my puppet server: > > > > [main] > > logdir = /var/log/puppet > > rundir = /var/run/puppet > > ssldir = $vardir/ssl > > > > [agent] > > classfile = $vardir/classes.txt > > localconfig = $vardir/localconfig > > > > [master] > > reports = log, foreman > > > > On my foreman server ssftmand01 I installed foreman and mysql db. I have > > updated the /etc/foreman/settings.yaml and /etc/foreman/database.yaml > > files. Here is my settings.yaml file: > > > > :unattended: false > > :login: false > > :require_ssl: false > > :locations_enabled: false > > :organizations_enabled: false > > :support_jsonp: false > > :puppet_server: ssfpuppetd01 > > :email_reply_address: Foreman...@gene.com <javascript:> > > > > I have started the foreman services on ssftmand01 but it has not puppet > > services running. Not sure if that is also needed. With this setup I > > still can''t seem to get any reports in foreman. I am pretty sure that I > > am missing something here and would really appreciate some help to get > > this to work. I want to use foreman just as a reporting tool for puppet > > and would not like to use the provisioning options. > > What errors are you experiencing? What versions of puppet and foreman > are you running? Have you restarted the puppetmaster/httpd after > installing and configuring the foreman report? > > > D. > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.