The cleanest way to do this would be to write a custom rvalue function
that does the Ruby check for you. You can't call ruby directly from the
puppet language, so you need to use functions or inline templates. I
definitely recommend going the function route, since it's much easier to
write tests for those, and your manifests end up looking much cleaner.
http://docs.puppetlabs.com/guides/custom_functions.html
--
Jacob Helwig
Thanks.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
See empty function:
https://github.com/puppetlabs/puppetlabs-stdlib/tree/master/lib/puppet/parser/functions
Thanks,
Nan