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:pass...@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:pass...@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!