>    And I want to say something like (pseudo code)
>   if network_* = 10.55.12.0
>   then
>   static route magic here

>From this example you're trying to detect it any interface is on the
10.55.12.0 network, correct? Are you also trying to match a set of
networks (10.55.12.0, 10.55.13.0, etc) with different behaviour for
each network?

Are you looking for a custom fact that will report a magic keyword?
What Ashley posted is, conceptually, the same as a 'location' fact I
made for work. It maps the nodes primary ipaddress to a string
physical location. Extending that to check if any interface matches is
pretty trivial.

You could also assign the output of a template to a variable, then
evaluate that. There are examples in Puppet_Templating on the wiki
that seem pretty similar.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to