-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> [0] I have various nodes defined by function (e.g. database server) that
> inherit from a base node. One thing the base node does is check a fact
> that returns the location of the client. It then includes a module with
> the location-specific configuration, such as the ntp server.

so you include in the base the ntp module and set the $ntp_servers
variable in the sub-node? Yes, this will not work as when the ntp class
is included the ntp_servers are not yet set.

The best practice is to either go with an external node tool for
complexe node definitions or at least not to use any includes in
super-nodes which behavior you want to tweak with variables in
sub-nodes, as inheritance in nodes don't work the way most people expect it.

cheers pete

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvWl7YACgkQbwltcAfKi3/cQgCeIiiI7BrLadADj/nN60wn5vNe
9LkAn2v4r6jBgChk0HsI2/kCZUU24SH6
=uiQL
-----END PGP SIGNATURE-----

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