Hi all:

El Miércoles, 21 de Abril de 2010 06:55:29, Daniel Pittman escribió:
> donavan <dona...@desinc.net> writes:

[...]

> > When I made up my sites broadcast fact I solved it in a manner like
> > interfaces.rb. Essentially there are multiple "broadcast_$interface"
> > facts, and while creating these the interface associated with
> > "ipaddress" also sets the "broadcast" fact as primary.
>
> What do you do about an interface like this:
>
> 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
>   link/ether 00:30:48:97:59:ae brd ff:ff:ff:ff:ff:ff
>   inet 192.168.10.11/24 brd 192.168.10.255 scope global eth0
>   inet 192.168.10.130/24 brd 192.168.10.255 scope global secondary eth0:0
>   inet 192.168.10.131/24 brd 192.168.10.255 scope global secondary eth0:1
>   inet 192.168.10.132/24 brd 192.168.10.255 scope global secondary eth0:2
>
> (Actually, that one is easy as all the extra addresses are in the same
>  segment.  We have other machines where they are not...)
>
> > Moving on to the gateway fact; I think a trivial solution is to use
> > your array of gateways to create a series of "gateway_$n"[1] facts.
>
> ...by "gateway" do you mean "default route", or just "gateway" — we have
> hosts that have a dozen different routes, and sometimes no default route at
> all, that act inside the network.

*Or* even multiple default gateways since a "default gateway" is nothing but 
one that allows routing to 0/0.  When more that one is defined, provided they 
have the same metric, the first one is always used unless fail is detected in 
which case the second one is tried in turn, etc.

Cheers.

-- 
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