]
}
+ exec { 'Start-apache':
+ command => "/usr/bin/systemctl start httpd",
+ before => Class["::letsencrypt"],
+ unless => "/usr/bin/systemctl is-active httpd",
+ }
+
$letsencrypt_certonly_default = {
plugin => "webroot",
webroot_paths => ["/srv/http/"],
notify => Class['Apache::Service'],
- require => [Apache::Vhost["redirect_no_ssl"],Apache::Custom_config["letsencrypt.conf"]],
+ require => [Exec['Start-apache'],Apache::Vhost["redirect_no_ssl"],Apache::Custom_config["letsencrypt.conf"]],
manage_cron => true,
}