Add check for defined
This commit is contained in:
parent
aedc5d205d
commit
e89441990b
1 changed files with 5 additions and 3 deletions
|
@ -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],
|
||||||
|
|
Loading…
Reference in a new issue