Hi, I have different class of nodes in my network like ''sql servers'' , ''http servers'' , ''smtp servers''. I have written ''node'' definition for them. i''m not sure how to configure puppet master send those configuration to those nodes when they connect. the documentation says, "The interpreter looks through the list of node definitions for one matching the client name and evaluates the resulting definition if it finds one." my clients dont have hostnames like sql.mynet.com. instead they have random hostnames which we assign. is there any way to make puppet master to match node definitions based on some information from client? _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On May 28, 2007, at 11:56 PM, Suresh Lakshmanan wrote:> Hi, > I have different class of nodes in my network like ''sql servers'' , > ''http servers'' , ''smtp servers''. I > have written ''node'' definition for them. i''m not sure how to > configure puppet master send those > configuration to those nodes when they connect. > > the documentation says, > "The interpreter looks through the list of node definitions for one > matching the client name and evaluates the resulting definition if > it finds one." > > my clients dont have hostnames like sql.mynet.com. instead they > have random hostnames which we assign. is there any way to make puppet > master to match node definitions based on some information from > client?What information do you want to use? Most likely, you''ll have to write a server-side function that converts from the random hostname to the correct class. Or, of course, you can just declare the information in your configuration: node blah { include sqlserver } -- DOS is the _only_ operating system -- and I''m using that term loosely -- which [exhibits this behavior]. --Aeleen Frisch, "Essential System Administration" --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
>What information do you want to use?For example, i have my custom mapping of what classes for what hostnames. if my sqlserver client host is, "blah.mynet.com" , i could have some data that says blah => it is ''sql'' or i could assign hostnames so that its sql-blah.mynet.com and parse ''sql-blah'' and understand that its ''sql'' class is it possible for my puppet client to send any other information (for example, a file maybe?) to facilitate this?>Most likely, you''ll have to write a server-side function that >converts from the random hostname to the correct class.Can you give pointers for them please? _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On May 29, 2007, at 10:24 PM, Suresh Lakshmanan wrote:> For example, i have my custom mapping of what classes for what > hostnames. > if my sqlserver client host is, "blah.mynet.com" , i could have > some data that says > blah => it is ''sql'' or i could assign hostnames so that its sql- > blah.mynet.com and parse > ''sql-blah'' and understand that its ''sql'' class > > is it possible for my puppet client to send any other information > (for example, a file maybe?) > to facilitate this?Yes, you can create custom facts on the client.> Can you give pointers for them please?See CreatingYourOwnFunctions on the wiki. -- Get forgiveness now -- tomorrow you may no longer feel guilty. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com