From b1602fcad85d1c283d0f4da8d4166d3e17149344 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 17 Jun 2016 09:14:02 -0300 Subject: Uses certbot module --- manifests/certbot.pp | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 manifests/certbot.pp (limited to 'manifests/certbot.pp') diff --git a/manifests/certbot.pp b/manifests/certbot.pp deleted file mode 100644 index 98f5203..0000000 --- a/manifests/certbot.pp +++ /dev/null @@ -1,22 +0,0 @@ -define nginx::certbot( - $aliases = '', - $ensure = present, - $email = hiera('nginx::certbot::email'), - $size = hiera('nginx::certbot::size', '4096'), -){ - # Certbot support - file { "/var/www/certbot/${name}": - ensure => directory, - owner => 'root', - group => 'www-data', - mode => '0750', - require => Package['certbot'], - } - - # Make sure nginx is restarted and request a certificate - exec { "certbot-${name}": - command => "/usr/sbin/service nginx restart && /usr/bin/certbot certonly --webroot -w /var/www/certbot/${name} -d ${name} -d www.${name} -m ${email} --rsa-key-size ${size} --agree-tos", - creates => "/etc/letsencrypt/archive/${name}", - require => File["/var/www/certbot/${name}", "/etc/nginx/sites-enabled/$name"], - } -} -- cgit v1.2.3