puppet-keepalived
puppet-keepalived copied to clipboard
WIP - feature completeness with 2.1.5
Pull Request (PR) description
feature-completness-with-2.1.5 tries to make puppet-keealived feature complete in a sense that all options keepalievd 2.1.5 provides, can be set via this puppet module.
This Pull Request (PR) fixes the following issues
Currently a lot of options are missing :/
State of the Pull Request
This is currently and at the moment Work In Progress. I just wanted to push early to have the change to get early feedback, too.
So far global_defs should be completely covered. Only a few options are missing in spec. Anyone reading this is invited to give me a pair of eyes and provide some hints how to cover the missing ones!
I had a talk with @ghoneycutt and he gave me the /ok/ to just do a large commit, as I do not change features, but just adding new options. As you can see in global_defs some options are now set to undef as they only reflect the implicit default state of keepalived. I'm not quiet sure if this is just some old stuff or if keepalived actually switched that in the last 3(?) years...
In the next days I want to try to do the same with vrrp_instance. As I have no clue about LVS, I will quietly ignore this for now. I maybe will continue with vrrp_script then...
Anyway I have some "questions" aka I'm unsure about it, and like to get feedback:
- I've set all
paramsofglobal_defsto have a Data Type; I tried to reflect documentation from keepaliveds manpage as good as I could. Could someone have a look and give me a "go ahead"/continue or a "please stop and do it that way"? - Should the test in spec cover allowed vaues of an option? Like if when an Integer can only be set between 0 and 99, or where does this go?
- How do I write a spec for situations with like
nftables: it could be just set, (with puppet viatrue, but in the config without parameter) and it could also have one parameter or two, if the user wants to specify the chain.
Closing note for now: I've ordered all options as they appear in keepaliveds documentation to make it easier to compare the state of "feature completeness".
Thanks.
@ghoneycutt could you do a first review, now that all checks are passing? Thanks.
Will this get done any time soon? Debian Bullseye will be shipped with 2.1.5 .
@sprd-bena hey, any chance that you can rebase this against our latest master branch?