markt-de / puppet-acme

Centralized SSL certificate management using acme.sh and the ACME protocol
https://forge.puppet.com/markt/acme
Apache License 2.0
9 stars 17 forks source link

[ Feature Request ] default_account and default_profile #38

Closed c33s closed 4 months ago

c33s commented 2 years ago

would be handy to be able to define a default account

fraenki commented 2 years ago

How and where? Could you elaborate more on this?

c33s commented 2 years ago

it just would be simpler to use the acme::certificate as you would not be required to add all the parameters again.

for example: host.yaml (hiera)

acme::default_profile: my_profile
acme::default_account: certmaster@example.com
acme::default_ca: letsencrypt_test

webserver.pp:

...
include acme

acme::certificate { 'example.com'; }

#instead of

acme::certificate { 'example.com':
  use_profile => 'my_profile',
  use_account => 'certmaster@example.com',
  ca          => 'letsencrypt_test',
}
...

hope i described better what i mean. just let me know if you need more detail

fraenki commented 4 months ago

Implemented in https://github.com/markt-de/puppet-acme/commit/2dbbddef40d4a9790b94e149273eebe32c9331cb. Currently untested... :)