I have the following definition in a yaml file:
keepalived:
cluster_name: "cluster.example.lan"
cluster_ip: "192.168.1.10"
cluster_nic: "eth0"
haproxy:
bind_address: %{hiera('keepalived::cluster_ip')}
And as a result in bind_address
I've got an empty string.
If I use %{hiera('keepalived')}
I've got the whole hash printed, but I need only cluster_ip
from this hash. How can I lookup the cluster_ip
?