+ 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 => [Exec['Start-apache'],Apache::Vhost["redirect_no_ssl"],Apache::Custom_config["letsencrypt.conf"]],
+ manage_cron => true,
+ }
+
+ class { '::letsencrypt':
+ install_method => "package",
+ package_name => "certbot",
+ package_command => "certbot",
+ email => lookup('letsencrypt::email'),
+ }
+
+ $real_hostname = lookup("base_installation::real_hostname", { "default_value" => undef })