Trying to understand how puppet reports errors
Example of why I am asking the question (on a test setup environment)

Created a base-1 node
Created 2 slave nodes that inherit from base-1
Let's call those slave1 and slave2

No errors. It all works.

Created a base-2 node
created a third slave that inherits from base-2. Let's call that slave3

Get an error
Could not retrieve catalog from remote server: Error 400 on SERVER: 
Duplicate declaration: Adduser[USERNAME] is already declared in file 
/etc/puppet/manifests/nodes/base-1.pp at line 15; cannot redeclare on node 
slave1

What I am trying to figure out is why the error is reported in 
base-1/slave-1... even though those 2 alone work until I introduce 
base-2/slave3.

I would have expected the error to report say in slave-3.. that  the 
adduser was already defined in base1-/slave-1.. but don't understand why it 
refers to base1/slave1

If I had come to this error without knowing I just added base-2 and slave3 
I would be looking, possibly, at the wrong files.

Is: puppet catalog find <any-node-name>
the best way to "lint" after making changes?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to