Only bind certbot to machine-specific IP
Because there will be haproxy instances running next to this service we can only listen to the machine-local address not the default of "all addreses": Error seen: ``` Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again. ```
This commit is contained in:
parent
d4f938770a
commit
b4261094a7
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class cdn::mqtt(
|
|||
content => file('cdn/mqtt/sunet-cdn-mqtt'),
|
||||
}
|
||||
|
||||
exec { "certbot certonly -n --email patlu@sunet.se --no-eff-email --agree-tos --standalone -d ${my_fqdn} --server ${acme_url[$environment]}":
|
||||
exec { "certbot certonly -n --email patlu@sunet.se --no-eff-email --agree-tos --standalone -d ${my_fqdn} --server ${acme_url[$environment]} --http-01-address ${facts['networking']['ip']}":
|
||||
creates => "/etc/letsencrypt/live/${my_fqdn}/fullchain.pem"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue