Peter Berghold
2012-Mar-01 21:51 UTC
[Puppet Users] Dashboard, node classes, what do they do part 2
Hi folks, Went back and did some more reading and found the intriguing entry in the Dashboard documentation "The classes the console knows about are a subset of the classes in your puppet master’s collection of modules. You must add classes to the console manually if you want to assign them to any nodes or groups." OK fair enough. I have a class (just picking one) defined in a module called postfix::inbound which I defined on the console and added it to a host group of which a brand new clean server. For now the class is written just to notify that it is being invoked. When I run the puppet agent I don''t see the class being applied. Am I hoping for too much? -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.
Romeo Theriault
2012-Mar-02 05:55 UTC
Re: [Puppet Users] Dashboard, node classes, what do they do part 2
On Thu, Mar 1, 2012 at 11:51, Peter Berghold <salty.cowdawg@gmail.com> wrote:> Hi folks, > > Went back and did some more reading and found the intriguing entry in the > Dashboard documentation > > "The classes the console knows about are a subset of the classes in your > puppet master’s collection of modules. You must add classes to the console > manually if you want to assign them to any nodes or groups." > > OK fair enough. I have a class (just picking one) defined in a module > called postfix::inbound which I defined on the console and added it to a > host group of which a brand new clean server. For now the class is written > just to notify that it is being invoked. > > When I run the puppet agent I don''t see the class being applied. > > Am I hoping for too much?Maybe :) In the Dashboard, when they say "classes" they really mean "module". Add "postfix::inbound" instead of the actual class inside of the module to the Dashboard and it should work just fine for you. -- Romeo -- 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.
Peter Berghold
2012-Mar-02 14:12 UTC
Re: [Puppet Users] Dashboard, node classes, what do they do part 2
On Fri, Mar 2, 2012 at 12:55 AM, Romeo Theriault <romeo.theriault@maine.edu>wrote:> > In the Dashboard, when they say "classes" they really mean "module". > >This begs a follow-on question: if classes == modules in Dashboard then maybe I need to take a second look here. The module that I am writing from scratch to work with Dashboard is called postfix. If I understand what you are saying and what the documentation infers I need to re-architect my module a bit. This module is supposed to handle four distinct postfix cases: 1. null client 2. post office box (handles IMAP/POP accounts, receives email but sends through a relay) 3. inbound only 4. outbound only Given that I guess I should be setting a parameter within Dashboard (I''ll call it postfix_mode) and set up within the postfix class inside of init.pp file within the postfix module such that: case $:postfix_mode { "null client" : { include postfix::nullclient } "inbound" : { include postfix::inbound} ---- etc ---- } Am I on the right track? -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.
Romeo Theriault
2012-Mar-02 18:42 UTC
Re: [Puppet Users] Dashboard, node classes, what do they do part 2
On Fri, Mar 2, 2012 at 04:12, Peter Berghold <salty.cowdawg@gmail.com> wrote:> > > On Fri, Mar 2, 2012 at 12:55 AM, Romeo Theriault <romeo.theriault@maine.edu> > wrote: >> >> >> In the Dashboard, when they say "classes" they really mean "module". >> > > > > This begs a follow-on question: > > if classes == modules in Dashboard then maybe I need to take a second look > here.Actually, after I sent this I started thinking about it a bit more. I''m just getting started with Dashboard and it''s been working for me to just put in the "module" name in the Dashboard and not the class-name. But I''m not sure if this is because my "class" name up till now has always been same as the module name and it has up till now always resided inside of the init.pp in the module. So, I guess what I''m saying is that I''m not so sure if classes == modules in Dashboard. It may be that if you have other classes in the module you may be able to call them directly with "modulename::classname" (?) but I''m not really sure. I''d just test it out for a while to figure it out. -- Romeo -- 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.
Peter Berghold
2012-Mar-02 18:47 UTC
Re: [Puppet Users] Dashboard, node classes, what do they do part 2
I actually have figured this out (with some help from the list.) Seems I was encountering a PEBKAC error. :-) I hadn''t set up puppet to use dashboard for external node classification. (so that''s what it''s useful for! hmmm...)>-- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.