Issue #2813 has been updated by Markus Roberts.

I don't think it's been solved.  Putting:

    class bug2813 {
        host { "bug2813":
            alias => "bug2813.test",
            ip    => "127.1.0.1",
        }
    
        file { "/tmp/bug2813":
            alias   => "bug2813",
            content => "fubar",
            require => Host["bug2813.test"],
        }
    }
    
    node default {
        include bug2813
    } 

in 2813.pp and running:

    puppet 2813.pp

on the latest 0.25.x I got:

    Could not find dependency Host[bug2813.test] for File[/tmp/bug2813] at 
/Users/markus/projects/puppet/2813.pp:11

Putting a finer point on it, changing 2813.pp to:

    node default {
        host { "x": alias => "xyx"}
        host { "y": require => Host["xyz"] }
    }

gives me:

    Could not find dependency Host[xyz] for Host[y] at 
/Users/markus/projects/puppet/2813.pp:3


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