Hi, I''ve setup my systems to do reporting as explained in https:// reductivelabs.com/cgi-bin/puppet.cgi/wiki/ReportsAndReporting, with tagmail defined as one of the report types - but I do not recieve any mail at all. I''ve configured a tagmail.conf file like this: all: root@localhost But the documentation mentions three options, namely sendmail, reportfrom, smtpserver. Should they also be set in tagmail.conf...? And should it be "ini" style...? -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
--On Wednesday, January 31, 2007 10:08 PM +0100 Juri Rischel Jensen <juri@fab-it.dk> wrote:> Hi, > > I''ve setup my systems to do reporting as explained in https:// > reductivelabs.com/cgi-bin/puppet.cgi/wiki/ReportsAndReporting, with > tagmail defined as one of the report types - but I do not recieve any > mail at all. > > I''ve configured a tagmail.conf file like this: > > all: root@localhostOn your puppetmaster config (/etc/puppet/puppetmaster.conf) do you have: reports = tagmail ? -- Digant C Kasundra <digant@stanford.edu> Technical Lead, ITS Unix Systems and Applications, Stanford University
On Jan 31, 2007, at 22:34, Digant C Kasundra wrote:> On your puppetmaster config (/etc/puppet/puppetmaster.conf) do you > have: > > reports = tagmailYes. -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
On Jan 31, 2007, at 3:08 PM, Juri Rischel Jensen wrote:> Hi, > > I''ve setup my systems to do reporting as explained in https:// > reductivelabs.com/cgi-bin/puppet.cgi/wiki/ReportsAndReporting, with > tagmail defined as one of the report types - but I do not recieve any > mail at all.Can you paste your client and server configurations? Your clients should have ''report = true'' in their configurations, and the server should have ''reports = tagmail'' in its configuration. Are both of those set? If so, when you run the server in verbose mode, does it say anything about reporting?> I''ve configured a tagmail.conf file like this: > > all: root@localhost > > But the documentation mentions three options, namely sendmail, > reportfrom, smtpserver. Should they also be set in tagmail.conf...? > And should it be "ini" style...?I assume Digant''s help on the config was enough here. The field format is comma-separated tags, a colon, and then comma-separated email addresses. Tags can also be negated with ''!''. Here are a couple of example configuration lines: webserver, !mailserver: web@domain.com me, you, billymcgee: them@domain.com, joe@domain.com -- Health nuts are going to feel stupid someday, lying in hospitals dying of nothing. --Redd Foxx --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Feb 2, 2007, at 22:17, Luke Kanies wrote:> On Jan 31, 2007, at 3:08 PM, Juri Rischel Jensen wrote: > >> Hi, >> >> I''ve setup my systems to do reporting as explained in https:// >> reductivelabs.com/cgi-bin/puppet.cgi/wiki/ReportsAndReporting, with >> tagmail defined as one of the report types - but I do not recieve any >> mail at all. > > Can you paste your client and server configurations? Your clients > should have ''report = true'' in their configurations, and the server > should have ''reports = tagmail'' in its configuration. Are both of > those set? If so, when you run the server in verbose mode, does it > say anything about reporting?My server and clients are configured as above...>> I''ve configured a tagmail.conf file like this: >> >> all: root@localhost >> >> But the documentation mentions three options, namely sendmail, >> reportfrom, smtpserver. Should they also be set in tagmail.conf...? >> And should it be "ini" style...? > > I assume Digant''s help on the config was enough here. The field > format is comma-separated tags, a colon, and then comma-separated > email addresses. Tags can also be negated with ''!''. Here are a > couple of example configuration lines: > > webserver, !mailserver: web@domain.com > me, you, billymcgee: them@domain.com, joe@domain.comHow can I (for a start) get reports on everything? By defining: all: me@mydomain.com ?? Or should be something else...? Another thing is namespaceauth.conf. Mine contains: [puppetreports] allow *.mydomain.com That should be enough, right? -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
On Feb 6, 2007, at 9:32 AM, Juri Rischel Jensen wrote:> How can I (for a start) get reports on everything? By defining: > > all: me@mydomain.com > > ?? Or should be something else...?The above should do it, assuming reporting is enabled on your clients and the tagmail report is enabled on your server.> Another thing is namespaceauth.conf. Mine contains: > > [puppetreports] > allow *.mydomain.com > > That should be enough, right?Yeah, although note that you''ll have to run puppetrun as a user capable of retrieving the certificates for the host you''re on (i.e., root), or you''ll have to set up certs for yourself. The ca should be enhanced to support creating user certs so that puppetrun can run as a normal user, but I''ve barely spent any time on puppetrun yet. -- I worry that the person who thought up Muzak may be thinking up something else. --Lily Tomlin --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Hi Luke On Feb 6, 2007, at 18:13, Luke Kanies wrote:> Yeah, although note that you''ll have to run puppetrun as a user > capable of retrieving the certificates for the host you''re on (i.e., > root), or you''ll have to set up certs for yourself. The ca should be > enhanced to support creating user certs so that puppetrun can run as > a normal user, but I''ve barely spent any time on puppetrun yet.Hmm, this makes me even more confused, sorry. Can you explain to me how this tagmail report works? Are the reports sent from the puppetmaster, or directly from the clients? Is it done via puppetrun? I haven''t yet tested if puppetrun actually works... -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
On Feb 8, 2007, at 2:59 AM, Juri Rischel Jensen wrote:> Hi Luke > > On Feb 6, 2007, at 18:13, Luke Kanies wrote: >> Yeah, although note that you''ll have to run puppetrun as a user >> capable of retrieving the certificates for the host you''re on (i.e., >> root), or you''ll have to set up certs for yourself. The ca should be >> enhanced to support creating user certs so that puppetrun can run as >> a normal user, but I''ve barely spent any time on puppetrun yet. > > Hmm, this makes me even more confused, sorry. Can you explain to me > how this tagmail report works? Are the reports sent from the > puppetmaster, or directly from the clients? Is it done via puppetrun? > I haven''t yet tested if puppetrun actually works...Sorry. Puppetrun is basically unrelated to reporting. Each client sends a report to the server at end of every transaction, as long as reporting is enabled. When the server receives a report, it processes it using the different report types specified on the server. One of these report types is ''tagmail'', which will send you email. Thus, the emails you get will be sent by the server. I don''t remember how puppetrun got brought into this discussion. -- Never interrupt your enemy when he is making a mistake. --Napolean Bonaparte --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com