Issue #1358 has been updated by Fujin.

Category set to language
Status changed from Unreviewed to Needs more information
Assigned to set to luke

I can verify this behaviour; Luke, could you please clarify if you'd like this 
accepted (and thus eventually fixed, perhaps renaming the alias parameter to 
the host{} type.. so we can keep the alias metaparameter functional for this 
type, while still providing the ability to manage multiple 'aliases' per host{}?
----------------------------------------
Bug #1358: Unable to replace host "X" with host "Y" and alias "X"
http://reductivelabs.com/redmine/issues/show/1358

Author: porridge
Status: Needs more information
Priority: Normal
Assigned to: luke
Category: language
Target version: 
Keywords: 
Complexity: Unknown
Patch: None
Affected version: 0.24.4


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