All I am doing some testing and have a quick question. Do class and node names have to be unique? I define a node: node test { include test } and a class called test. When I run the test node and connect I don''t get an error but no configuration is applied to the node. Is this normal behaviour or a bug? If it''s normal behaviour should Puppet tell you about the duplication? Regards James Turnbull -- James Turnbull <james@lovedthanlost.net> --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jul 31, 2007, at 7:42 AM, James Turnbull wrote:> All > > I am doing some testing and have a quick question. Do class and node > names have to be unique? I define a node: > > node test { > include test > } > > and a class called test. > > When I run the test node and connect I don''t get an error but no > configuration is applied to the node. Is this normal behaviour or a > bug? If it''s normal behaviour should Puppet tell you about the > duplication?Yes, they have to be unique. If you''re running 0.23.1, you should get an error thrown if you do that. I tried to make it so they didn''t have to be unique, but I couldn''t find a decent way to do so. -- It is better to sleep on things beforehand than lie awake about them afterward. -- Baltasar Gracian --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Luke Kanies wrote:> Yes, they have to be unique. If you''re running 0.23.1, you should get > an error thrown if you do that. > > I tried to make it so they didn''t have to be unique, but I couldn''t find > a decent way to do so.I haven''t delved into the code too deeply yet but can''t you classify stanzas by type when they are interpreted, and feel free to deride me if I have simplified this, for example: node.test class.test definition.test Or this much more complicated...? Regards James Turnbull -- James Turnbull <james@lovedthanlost.net> --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users