Closed frank-f closed 9 months ago
I guess the Ubuntu 22.04 test failure is related, not sure why though.
I don't see how those could be related to my changes. All I can see in the test output is
Dec 06 16:50:32 ubuntu2204-64-puppet8.example.com Keepalived[1185]: Warning - keepalived has no configuration to run
I also don't see any way for me to debug this. Other tests show the contents of keepalived.conf before starting it, but the Ubuntu tests don't. 🤷🏻♂️
BTW, the same tests also fail with the same error in PR #299
While deploying to our environment today I noticed, that unicast_peers was not working. The second commit fixes that.
However, it will not fix the Ubuntu checks. Those have been broken since Ubuntu 22.04 support was added with PR #297.
Pull Request (PR) description
Config fragments are called 100-$NAME-key (Note: parts are separated by dashes). Now if the following conditions are met, ordering will be messed up:
I created another "ordersafe" variable that does not contain dashes. Also I noticed that $_name could still contain colons, slashes, ... because regsubst was just removing the first occurrence. The G flag will fix this, while we're here.
This Pull Request (PR) fixes the following issues
Fixes #302