I must be missing something obvious, but I haven''t figure out how to show debug/notice messages on the client when doing "puppet --server blah --test". I''ve tried doing something like: define example { notice("hello") } but I see nothing in the client messages (or the server''s log file). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
> On Sun, Oct 19, 2008 at 12:36 AM, schickb <schi...@gmail.com> wrote: > > > > I must be missing something obvious, but I haven''t figure out how to > > show debug/notice messages on the client when doing "puppet --server > > blah --test". I''ve tried doing something like: > > > define example { > > notice("hello") > > } > > > > but I see nothing in the client messages (or the server''s log file).On Oct 19, 12:09 pm, "Paul Lathrop" <p...@tertiusfamily.net> wrote:> Are you using "puppet" as you say below, or "puppetd"? "puppet" is a > standalone interpreter which does not contact a server. > > All functions run server-side, so if you *are* using "puppetd", you > would need to look in the server logs, and it will be there. >Yes I am using puppetd, but and I still don''t see anything in the /var/ log/puppet/masterhttp.log on the server. I guess part of my confusion is how the notify function works with loglevel, since loglevel is a property of a type but you can''t call notice() from within a type instance can you? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Sun, Oct 19, 2008 at 2:37 PM, schickb <schickb@gmail.com> wrote:> On Oct 19, 12:09 pm, "Paul Lathrop" <p...@tertiusfamily.net> wrote: >> Are you using "puppet" as you say below, or "puppetd"? "puppet" is a >> standalone interpreter which does not contact a server. >> >> All functions run server-side, so if you *are* using "puppetd", you >> would need to look in the server logs, and it will be there. >> > > Yes I am using puppetd, but and I still don''t see anything in the /var/ > log/puppet/masterhttp.log on the server. I guess part of my confusion > is how the notify function works with loglevel, since loglevel is a > property of a type but you can''t call notice() from within a type > instance can you?Ugh. That log file drove me crazy when I was first starting too. That log file is, to my knowledge, completely useless. It might be a webrick log, I''m not sure. Anyway, you want to check wherever your system log records ''daemon'' messages; on my Debian boxes that''s /var/log/daemon.log -- that''s where you''ll find the actual puppetmasterd log messages. I''m not sure about where it is legal to use notice; I don''t tend to use it much. However, I *believe* you can use it just about anywhere as long as you aren''t trying to use it as an rvalue. I think the parser executes the logging functions as it encounters them lexically. Don''t quote me on that :-P --Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi> Yes I am using puppetd, but and I still don''t see anything in the /var/ > log/puppet/masterhttp.log on the server.masterhttp ist the wrong logfile. there should be a logfile like: /var/log/puppet/puppetmaster.log greets pete --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 19, 2:44 pm, "Paul Lathrop" <p...@tertiusfamily.net> wrote:> Ugh. That log file drove me crazy when I was first starting too. That > log file is, to my knowledge, completely useless. It might be a > webrick log, I''m not sure. Anyway, you want to check wherever your > system log records ''daemon'' messages; on my Debian boxes that''s > /var/log/daemon.log -- that''s where you''ll find the actual > puppetmasterd log messages.Thanks that was it. -Brad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---