On Tue, Dec 4, 2012 at 8:44 AM, Matthias Kellermann
<matthias.kellerm...@gmail.com> wrote:
> Hi there,
>
> I have a network service with three IP addresses. For my client config file
> I want to choose a random IP addresses of the three available addresses
> (round robin via DNS won't work..).
>
> Is there a way to use a random IP from an array in a puppet template?

The fqdn_rand function will consistently return a number seeded with
the fully qualified domain name.  You'll get back the same number
every time you execute this function when compiling a catalog for host
provided the fqdn of the host is static.

http://docs.puppetlabs.com/references/latest/function.html#fqdnrand

-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to