We said goodbye to params.pp and now to say goodbye to all these private classes that just break the code into multiple files without providing real value.
This is just copy/pasting the code back, except where noted in the comments.
The caddy::version
parameter is only used when caddy::install_method
is "github", but no error was previously raised if the user set a specific version that was ignored, and the resulting configuration was not what the user expected.
In order to avoid confusion, do not default to an outdated version of caddy when installing from GitHub (requiring the user to explicitly tell which version they want) and raise an error if a version is set but is ignored.
This should make the module more user-friendly for new users.
Fixes #94