Hi,
I'm using consul-template to generate iptable config file than I activate using iptables-restore command.
My configuration is working fine in this use-case :
- No iptable config file (or content not fresh)
- Starting consul-template process
- consul-template generates/updates iptables config file
- consul template launchs iptables-restore command because it created/modified file
But if at consul-template startup, iptables config file is already filled with correct data, consul-template will not launch command (as it didn't modify/create file).
But even if my iptables file is correctly filled, my iptables state can be wrong (or empty).
So to ensure my iptables state is always same as file when consul-template is running, I need consul-template to always launch command at startup even if destination config file was already good.
Do you know if there is a way to get this behaviour in last version of consul-template ?
I'm using 0.19.4 actually ;)
Regards,
Marc Cesarine