diff options
Diffstat (limited to 'manifests/certbot.pp')
-rw-r--r-- | manifests/certbot.pp | 22 |
1 files changed, 0 insertions, 22 deletions
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"], - } -} |