Issue #4599 has been updated by Dan Bode.

Assignee deleted (Dan Bode)


----------------------------------------
Bug #4599: host resource should fail when there are duplicates
http://projects.puppetlabs.com/issues/4599

Author: Dan Bode
Status: Needs more information
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected version: 0.25.5
Keywords: 
Branch: 


Consider the following /etc/hosts file with a duplicate namevar foo:

<pre>
127.0.0.2 foo
127.0.0.3 foo
</pre>

<pre>
#puppet resource host foo ip=127.0.0.1
notice: /Host[foo]/ip: ip changed '127.0.0.3' to '127.0.0.1'
</pre>

when puppet runs, it only updates the last entry in the file.

<pre>
127.0.0.2 foo
127.0.0.1 foo
</pre>

This is not consistent with the desired resource state. I would expect one of 
two things to happen:
- update all matching resources
- fail, duplicate namevar or something (this would be best)

since /etc/hosts chooses the first matching entry, this configuration would be 
broken.

It used to at least warn you in 0.25.x


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to