Ask Your Question

Revision history [back]

It looks like a few things are going on here:

  • Your Hiera data shows "balancermember00" used more than once as a hash key. Each one of those needs to be unique.
  • The "name_balancer" subkey likely needs unique values for each hash entry, too.
  • Your code appears to be create multiple balancer members on a single node, and your balancer member resource title is only based on the $::fqdn fact. If you attempt to declare more than one balancer member on the same host (I'm sure you don't want to do that anyways), you'll see a duplicate declaration error as you did.

So what you probably want to do is declare a bunch of balancer members in the Hiera data, but make sure that each one is only declared on a single host, instead of multiple ones on the same host.