On Friday, March 16, 2012 1:23:16 PM UTC-4, Peter Horvath wrote:
>
> So basically you want to avoid node config customization?
> You want an ultimate resolv class which will decide everything without
> you defining manually something in the node conf?
>
>
> What I *want* is this:

node basenode {
    class { resolv: nameservers => [ list based upon environment ], 
searchpaths => [ list based upon environment ] }
    class { 'ssh' : }
    # other 'standard' classes here
} 

node www1 inherits basenode {
    # Generic host, rubberstamped to look like lots of other boxes.
}

node dns inherits basenode {
    class { resolv :nameserver => [ overloaded list for all dns servers], 
searchpaths => [ overloaded list for all dns servers] }
|

node dns1-test inherits dns {
    class { resolv :nameserver => [ host specific list ], searchpaths => [  
host specific list] }
|

However, you can't do that as you are re-defining classes along the way.  
What ever the appropriate 'Puppet-way' of solving this problem is, I 
haven't found it yet.  That's what I need.   I think in terms of 'status 
quo' vs 'exceptions to status quo' for my environments.  I have the feeling 
that's the wrong way to work in Puppet, but I'm not sure.

-- 
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/-/McIZy-QPFcEJ.
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.

Reply via email to