Add check for defined
This commit is contained in:
parent
aedc5d205d
commit
e89441990b
1 changed files with 5 additions and 3 deletions
|
@ -360,10 +360,12 @@ class mastodon (
|
|||
timeout => 0,
|
||||
require => File["${mastodon_home}/live/.env.production"],
|
||||
}
|
||||
if (!defined(Class['letsencrypt'])) {
|
||||
class { 'letsencrypt':
|
||||
email => $cert_admin_mail,
|
||||
renew_cron_ensure => 'present',
|
||||
}
|
||||
}
|
||||
letsencrypt::certonly { $hostname:
|
||||
domains => [$hostname],
|
||||
pre_hook_commands => ['systemctl stop apache2'],
|
||||
|
|
Loading…
Reference in a new issue