Proposal: Switch use_letsencypt/use_freeipa to a new variable
While migrating gerrit for gluster, i realized that having a selfsigned certificate mode creation could be useful for testing. However, the current way to specifiy what certificate to use is not scalable, since we have to add 1 variable per method. We currently have 2 (freeipa and letsencrypt), and so I would like to propose the following:
- deprecate the 2 parameters (ie, convert them to the new style, along a message)
- replace by "use_https: freeipa" or "use_https: letsencrypt" (maybe add acme, just to be pedant).
This would permit to avoid corner cases like something turning the 2 parameters at the same time (which is likely gonna do something stupid). This would also permit to extend certificate handling more cleanly.
I would propose a 6 month period after which we remove the deprecation notice and where removal of the code is fair game.