summaryrefslogtreecommitdiff
path: root/manifests/site.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-17 09:14:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-17 09:14:02 -0300
commitb1602fcad85d1c283d0f4da8d4166d3e17149344 (patch)
treef4ec24f515899bb6f1b0c26da699f051db085dc0 /manifests/site.pp
parentf2f65ac3c75729004f0735c3a6e2bf64ff1db763 (diff)
downloadpuppet-nginx-b1602fcad85d1c283d0f4da8d4166d3e17149344.tar.gz
puppet-nginx-b1602fcad85d1c283d0f4da8d4166d3e17149344.tar.bz2
Uses certbot module
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"],
}
}
}