Issue #4599 has been updated by Dan Bode.
this issue is not a regression.
But there used to be a warning when running ralsh that is gone with 2.6
- warning: Host foo found in both parsed and parsed; skipping the parsed
version
I can create this warning on .25.x and 2.6.0 using puppet and by purging hosts.
<pre>
resources { 'host':
purge => true,
}
host { 'foo':
ensure => present,
ip => '127.0.0.2',
}
</pre>
even with purging, it allows there to be two entries.
----------------------------------------
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
Assigned to: Dan Bode
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.