Issue #2949 has been updated by Markus Roberts.

So that's a subtle distinction here (and the wording of the error message 
doesn't help).  An IP address is not a required property of a host resource--it 
isn't needed to talk about a host, and in fact there are cases where you'd want 
to be able to talk about hosts by name without knowing their IP addresses.  You 
could even verify the presence of a host without knowing its IP address.  Only 
when you go to _create_ one do you need the IP address.

The error you reported is a client side failure to apply the catalog, and only 
come at the end of the process after the puppetmaster has already compiled the 
catalog, sent it to the client, and the client has compared what should  be 
with what is, decided that changes need to be made, and started making them.  
It's not an objection to the catalog itself.  

I don't think this uniqe to hosts (other resources should present analogous 
situations) or is a change in behaviour either, though I could be mistaken.

----------------------------------------
Bug #2949: host can be exported without ipaddress
http://projects.reductivelabs.com/issues/2949

Author: Dan Bode
Status: Needs more information
Priority: Normal
Assigned to: Dan Bode
Category: 
Target version: 0.25.2
Affected version: 0.25.1
Keywords: 
Branch: 


the following puppet code works:

@@host { "$fqdn":
           ensure => "present",
           alias => "$hostname",
}

puppet will happily store this host, despite the fact that ip address is a 
required parameter.

then on collection, you see the following error:

[r...@dansrh1 manifests]# puppet collecthosts.pp --certname collect.test
notice: //Host[dansRH1.localdomain]/ensure: created
err: Got an uncaught exception of type ArgumentError: ip is a required 
attribute for hosts

I assume this would also occur with any resources that have required 
parameters, but I dont know of any others.

I am assuming that this is a bug (exports a bad resources which now causes an 
error on every host in the network)


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