Use server name from attribute everywhere

This commit is contained in:
2017-04-17 16:12:06 +02:00
parent 521f48a21e
commit 0cf22f7f71
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ end
unless node.chef_environment == "development"
include_recipe "kosmos-base::letsencrypt"
execute "letsencrypt cert for kosmos.social" do
execute "letsencrypt cert for #{server_name}" do
command "./certbot-auto certonly --webroot --agree-tos --email ops@5apps.com --webroot-path /var/www/mastodon -d #{server_name} -n"
cwd "/usr/local/certbot"
not_if { File.exist? "/etc/letsencrypt/live/#{server_name}/fullchain.pem" }