Issue #1358 has been updated by Luke Kanies.

Assigned to deleted (Luke Kanies)


----------------------------------------
Bug #1358: Unable to replace host "X" with host "Y" and alias "X"
http://projects.puppetlabs.com/issues/1358

Author: Marcin Owsiany
Status: Accepted
Priority: Normal
Assigned to: 
Category: RAL
Target version: unplanned
Patch: None
Affected version: 0.24.4
Keywords: 
Branch: 


An excerpt from 
http://groups.google.com/group/puppet-users/browse_thread/thread/8ed1b795b8b46661

Right after a host called "foo" is built, just
before the first puppet run, the /etc/hosts file contains the following entry:

<pre>
1.2.3.4 foo
</pre>

However, in order to match the information that is in DNS, I want the line to
look like this:

<pre>
1.2.3.4 somedomain.com foo.colo.domain foo
</pre>

Let's try to keep aside the discussion of whether that is actually a sane thing
to do, I'm still just experimenting. Let's focus on what may be necessary to
make puppet replace the existing line with what I want there to be. I added
something like this to the manifest:

<pre>
        host { foo: ensure => absent }
        host { "somedomain.com":
                ip => "1.2.3.4",
                alias => [ "foo.colo.domain", "foo" ]
        }
</pre>

However, surprisingly (or maybe not), what I get is just an early failure:

<pre>
Host[somedomain.com] is already being managed
</pre>

This is because of the dual purpose of "alias" param/metaparam.

I think this may be related to #1221



-- 
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