point me in the right direction. Is there a way that Puppet can test
whether or not expected functions are present, refuse to start if they are
not, and log a more informative error?
--dlloyd
On Wed, Jul 18, 2012 at 4:17 PM, Dave Lloyd wrote:
> Nan:
>
> Since my test module wor
Nan:
Since my test module worked and copying and pasting would be at best
cumbersome, I've just created a github project with my module:
https://github.com/ibikestl/puppet-netif
Examples should be in the tests.
Thanks again for your help on this,
--dlloyd
--
You received this message because
Nan:
I also coded up a test module using empty() and it works just fine, so it
seems that the issue is in how my module uses the empty() function. It
almost seems as though the empty() function is getting redefined somewhere
else, yet I don't find any other definitions anywhere in /etc/puppet/* .
On Mon, Jul 16, 2012 at 10:56 AM, Nan Liu wrote:
>
>
> empty() should be an rvalue function. In this case posting the empty()
> function would be more helpful than the puppet manifests.
>
> Nan
>
>
It's the standard one shipped with stdlib:
modules/stdlib/lib/puppet/parser/functions/empty.rb
#
#
Running 2.7.14 both on the client and server.
I've created a defined type for managing network interface IPs and static
routes. The routes are passed in as an array of hashes. I used the empty()
function to see if the array is empty before attempting to call another
defined type to write out the f
I'm using the empty function to test whether an array passed to my
defined type is empty (it's a function to set up network interfaces
and their routes if passed an array of routes). Unfortunately, I get
this error when trying to use the empty() function:
err: Could not retrieve catalog from remo