I would probably grimace and find my right eye twitch ramp back up if this was in my environment....but here you go:
node default { if $::ipaddress =~ /^10\.0\.[3,4]\.\d{1,3}$/ { include testing # testing class } } Obviously make sure no other matching node defs exist for this host. -Ryan On Thursday, July 5, 2012 11:34:39 AM UTC-7, Hai wrote: > > instead of using hostname wildcard, is there a way to define nodes by > their IP addresses? for example, I want to put all nodes with 10.0.2.x and > 10.0.3.0 to a nodes group called "testing". how can I do this? > > thanks. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/KGRDXRuwnZ4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.