Add check for defined

This commit is contained in:
Antonio J. Delgado 2024-05-04 13:21:15 +03:00
parent aedc5d205d
commit e89441990b

View file

@ -360,9 +360,11 @@ class mastodon (
timeout => 0, timeout => 0,
require => File["${mastodon_home}/live/.env.production"], require => File["${mastodon_home}/live/.env.production"],
} }
class { 'letsencrypt': if (!defined(Class['letsencrypt'])) {
email => $cert_admin_mail, class { 'letsencrypt':
renew_cron_ensure => 'present', email => $cert_admin_mail,
renew_cron_ensure => 'present',
}
} }
letsencrypt::certonly { $hostname: letsencrypt::certonly { $hostname:
domains => [$hostname], domains => [$hostname],