Forgive me if this has been discussed already (and please point me i the correct direction) But I have been trying to find a way to classify nodes in site.pp via webserver*.domain.com. Any hints? -Jason
This is not possible in site.pp You can however get the node declaration from ldap or through a script (in which you could implement this behavior) See: https://reductivelabs.com/trac/puppet/ticket/407 There is not much info around about this though. Regards, Jos -----Oorspronkelijk bericht----- Van: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] Namens Jason Rojas Verzonden: dinsdag 1 mei 2007 5:49 Aan: puppet-users@madstop.com Onderwerp: [Puppet-users] Regex for Nodes? Forgive me if this has been discussed already (and please point me i the correct direction) But I have been trying to find a way to classify nodes in site.pp via webserver*.domain.com. Any hints? -Jason _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On May 1, 2007, at 10:22 AM, Jos Houtman wrote:> This is not possible in site.pp > > You can however get the node declaration from ldap or through a > script (in > which you could implement this behavior) > > See: https://reductivelabs.com/trac/puppet/ticket/407 > > There is not much info around about this though.There''s a bit more info here: https://reductivelabs.com/trac/puppet/wiki/ ConfigurationReference#external_nodes (Not sure if the anchor link works, but you get the idea.) Basically, your script gets the node name as an argument, and needs to return two lines: The parent node on the first line (or a blank line), and whitespace-separated classes on the second line. -- I have a switch in my apartment... It doesn''t do anything. Every once in a while, I turn it on and off. One day I got a call... It was from a woman in France... She said, "Cut it out!" -- Stephen Wright --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com