diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-01-05 16:29:24 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-01-05 16:29:24 +0100 |
commit | d21390519026e6d31ffb2cfbb08bd77aebfce7c3 (patch) | |
tree | 7f3f4c79f3a62564f92bda45a365a51596fa37e1 /manifests/renew/setup.pp | |
parent | Initial commit (diff) | |
download | hugonikanor-letsencrypt-d21390519026e6d31ffb2cfbb08bd77aebfce7c3.tar.gz hugonikanor-letsencrypt-d21390519026e6d31ffb2cfbb08bd77aebfce7c3.tar.xz |
Initial code.
Diffstat (limited to 'manifests/renew/setup.pp')
-rw-r--r-- | manifests/renew/setup.pp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/renew/setup.pp b/manifests/renew/setup.pp new file mode 100644 index 0000000..360136c --- /dev/null +++ b/manifests/renew/setup.pp @@ -0,0 +1,17 @@ +# Sets up timers for automatically renewing certificates +# TODO +# - make provider OS dependant +# - is provider the correct name? +# private +class letsencrypt::renew::setup ( + Enum['systemd', 'cron'] $provider = 'systemd', +) { + file { [ + '/etc/letsencrypt/env', + ]: + ensure => directory, + } + + include "letsencrypt::renew::${provider}" +} + |