aboutsummaryrefslogtreecommitdiff
path: root/manifests/renew/systemd.pp
blob: 8c63f2349aec76eadca3e3158442ea897ac93b28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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 (
  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",
  }

  file { "${service_path}/${service_name}@.timer":
    source => "puppet:///modules/${module_name}/letsencrypt-renew.timer",
  }
}