Since both servers use different subnets, I need to use unicast_peers.
What are you seeing
Puppet will add the local IP address to the unicast_peer list. Also it removes unicast_src_ip which I prefer to set, since my systems have more than one IP, but just one of them works as Keepalived source. Most of the time it works automagically, sometimes it does not and I like to avoid surprises.
What behaviour did you expect instead
I want the resulting configuration file to look like this:
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
During my code research for #303 I discovered collect_unicast_peers and gave it a try.
I have two servers with IPs 10.1.2.11/24 and 10.2.2.11/24 and I'm using the following (hiera) code:
Since both servers use different subnets, I need to use unicast_peers.
What are you seeing
Puppet will add the local IP address to the unicast_peer list. Also it removes unicast_src_ip which I prefer to set, since my systems have more than one IP, but just one of them works as Keepalived source. Most of the time it works automagically, sometimes it does not and I like to avoid surprises.
What behaviour did you expect instead
I want the resulting configuration file to look like this:
Output log
Compared to my manual configuration the result will currently looks like this:
Any additional information you'd like to impart
I'll submit a PR that will fix this issue.