# Handles renewal certificates through systemd timers # @param service_name Target name of the service file # @param service_path Where the service file should be installed # @api private class letsencrypt::renew::systemd::setup ( String $service_name = 'letsencrypt-renew', String $service_path = '/etc/systemd/system', ) { file { "${service_path}/${service_name}@.service": source => "puppet:///modules/${module_name}/letsencrypt-renew.service", notify => Exec['systemctl daemon-reload'], } file { "${service_path}/${service_name}@.timer": source => "puppet:///modules/${module_name}/letsencrypt-renew.timer", notify => Exec['systemctl daemon-reload'], } exec { 'systemctl daemon-reload': refreshonly => true, provider => shell, } }