Issue #2949 has been updated by Dan Bode.

when combined with ensure => present, then ip is required. Note the error below.

[r...@puppetclient ~]# puppet -e 'host{'test1': ensure=> present}'
notice: //Host[test1]/ensure: created
err: Got an uncaught exception of type ArgumentError: ip is a required 
attribute for hosts

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