Issue #3081 has been updated by Michael Stahnke. Description updated Status changed from Unreviewed to Closed
If you use '[ ]' rather than "" the host alias is removed properly. This was validated on 2.7.9. ---------------------------------------- Bug #3081: Unable to specify absence of host host_aliases https://projects.puppetlabs.com/issues/3081 Author: Peter Pickford Status: Closed Priority: Normal Assignee: Category: host Target version: Affected Puppet version: Keywords: Branch: I doesn't seem possible to remove and alias from the hosts file given /etc/hosts 1.1.1.1 buildsun4u notwanted host { "hosts buildsun4u" : ip => "1.1.1.1", name => "buildsun4u", ensure => present, host_aliases => absent, } changes to 1.1.1.1 buildsun4u absent host { "hosts buildsun4u" : ip => "1.1.1.1", name => "buildsun4u", ensure => present, host_aliases => "", } changes to "1.1.1.1 buildsun4u " this is repeated on every run so /etc/hosts is constantly updated Jan 16 18:29:29 buildsun4u puppetd[6572]: [ID 702911 daemon.notice] (//base::default/Host[hosts buildsun4u]/host_aliases) host_aliases changed 'absent' to '' -- 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.
