How to get an array index in manifest
Hi, I would like to simplify my manifest by reducing duplicity in input parameters. I am provided an array of hostnames in the cluster and nodeId which says node number within cluster. That information can be derived.
$cluster=["host1",'host2", "host3.localdomain","host4"] # on host4 $nodeId = 4
That's what I would like to get simplified. The issue can be hostname vs. fqdn. Puppet afaik doesn't offer any loop costrcts and I am not aware of if the lambdas are available.
Can someone give me a hint? Thx