Taylan Develioglu
2014-May-13 13:05 UTC
[Puppet Users] puppet resource (ral) calls validate on custom (network_device) type
Hi everyone, I am writing a custom network device type and ran into some behavior I'm not sure how to work around. When running puppet resource to get all instances of a network_device type, validate is called. (Note: this is not the same resource type from the puppetlabs-f5 module.) I get the following: ________________________________________ root@traveler:~# FACTER_url='https://username:password@loadbalancer.example.com/'; puppet resource f5_node Error: Could not run: Validation of F5_node[/Common/TestNode2000] failed: ipaddress is required when ensure is present Wrapped exception: ipaddress is required when ensure is present _________________________________________ Parameter ipaddress is correctly prefetched / set. Also, modifying a resource (or creating) silently does nothing: _________________________________________ root@traveler:~/Downloads# FACTER_url='https://username:password@loadbalancer.example.com/'; puppet resource f5_node '/TestPartition2000/TestNode2000' ensure=present ipaddress='1.2.3.5' f5_node { '/TestPartition2000/TestNode2000': ensure => 'present', connection_limit => '1', dynamic_ratio => '1', ipaddress => '1.1.1.97', rate_limit => '1', ratio => '1', } _________________________________________ My question is, is this expected behavior ? Why is validate failing ? Why doesn't resource create not work ? Any pointers would be appreciated, thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/998738e6-2fe6-4357-9517-29754d36ba1c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.