summaryrefslogtreecommitdiff
path: root/manifests/site.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/site.pp')
-rw-r--r--manifests/site.pp6
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index c2a0a89..543850c 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -51,8 +51,10 @@ define nginx::site(
}
if $certbot == true {
- nginx::certbot { $name:
- ensure => $ensure,
+ certbot::manage { $name:
+ ensure => $ensure,
+ pre_hook => '/usr/sbin/service nginx restart',
+ require => File["/etc/nginx/sites-enabled/$name"],
}
}
}