# @summary Configures automatic renewal for the given certificate # @param cert_name # which certificate to renew. A letsencrypt::cert of the same name # must exists. # @api private define letsencrypt::renew ( String $cert_name = $name, ) { # TODO this is systemd specific # TODO ensure letsencrypt::renew::setup is included beforehand service { "${letsencrypt::renew::systemd::service_name}@${cert_name}.timer": ensure => 'running', enable => true, } }