Issue #3081 has been updated by James Turnbull.

Category set to host
Status changed from Unreviewed to Accepted
Assigned to set to Markus Roberts
Target version set to Puppet - 0.25.4

There is no "absent" value for host_aliases - that will just change the alias 
to "absent". And undef doesn't seem to work.  So def. a bug.

Over to Markus.
----------------------------------------
Bug #3081: Unable to specify absence of host host_aliases
http://projects.reductivelabs.com/issues/3081

Author: Peter Pickford
Status: Accepted
Priority: Normal
Assigned to: Markus Roberts
Category: host
Target version: 0.25.4
Affected version: 0.25.4rc1
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://reductivelabs.com/redmine/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