On Tue, Feb 15, 2011 at 6:27 PM, Gabriel Filion <[email protected]> wrote:
> On 11-02-15 04:50 PM, Paul Nasrat wrote: > > KISS should win. IMO. Particularly with networking. > > > > We need to make sure things are clearly defined - the mess that is > > domainname/dnsdomainname/fqdn shows that. > > I agree with you that it should be kept simple. Just this week I asked > the question about the $ipaddress fact that Daniel mentioned. > > In my case the confusion was caused by the fact that something named > $ipaddress should imply that it would point to the 'right' (tm) > address.. whatever that means. > > How about simply adding a means to change the interface to which the > $ipaddress fact is bound, maybe via a config in puppet.conf. This would > "empower" users to fix the situation in such cases where 'the first > interface' heuristic doesn't fit. > This means may already exist, for the most part. You can set $ipaddress in your manifest (say, site.pp) with conditionals and other goodness that you decide makes the right decision about what to set. This works for most things except for maybe few things: - facts can't depend on this in-manifest value - types might use the old fact value when determining what providers are valid (though this probably doesn't matter for the ipaddress fact) It's not a perfect solution, but it might work for most use cases? -Jordan > -- > Gabriel Filion > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
