Issue #2813 has been updated by Brice Figureau.

Brice Figureau wrote:
> Tim Stoop wrote:
> > This is a complete class that will fail, for (hopefully) easy testing. Keep 
> > in mind that it doesn't clean up!
> > 
> > [...]
> 
>  I couldn't reproduce this bug with latest 0.25.x HEAD.

Note I tested without a node, directly including the class and/or its content. 
But that shouldn't really matter.
Note, I tested with files and not host (because I don't run as root, so 
modifying /etc/hosts was not an option).

/me thinking hard

I think the issue is that Host has an "alias" property:
http://reductivelabs.com/trac/puppet/wiki/TypeReference#id436
which certainly overrides the alias metaparameter.

Is it working in 0.24.8?


----------------------------------------
Bug #2813: Aliases can no longer be used as resource names in references?
http://projects.reductivelabs.com/issues/2813

Author: Tim Stoop
Status: Accepted
Priority: Normal
Assigned to: 
Category: RAL
Target version: 0.25.2
Affected version: 0.25.1
Keywords: 
Branch: 


Hi there,

I have a very simple (part of a) manifest:

<pre>
host { "nfs":
  alias => "nfs.ip",
  ip => "10.2.0.10",
}

nfs_mount { "/srv/oracle":
  source => "nfs.ip:/path/to/mount",
  require => Host["nfs.ip"],
}
</pre>

This gives me the error:

<pre>err: Could not apply complete catalog: Could not retrieve dependency 
'Host[nfs.ip]' of Nfs_mount[/srv/oracle] at manifestfile:123</pre>

This worked in 0.24.8. Actually, when I revert to the 0.24.8 client but keep 
the puppetmaster at 0.25.1, it still works. Only after upgrading the client to 
0.25.1 it breaks.

Please let me know if there's anything I can do to help fix this.


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