voxpupuli / puppet-caddy

Puppet Caddy module
MIT License
6 stars 12 forks source link

Require a version when installing from GitHub #97

Open smortex opened 1 year ago

smortex commented 1 year ago

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