Fix acme.cert to run certbot non-interactively

Certbot should never be running interactively when executed via Salt, so
this patch adds an argument to certbot which informs it to not run
interactively.

This fixes #42763.
This commit is contained in:
Ollie Armstrong 2017-11-23 11:11:42 +00:00 committed by rallytime
parent f2f6817e86
commit 3d85a260c4
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -125,7 +125,7 @@ def cert(name,
salt 'gitlab.example.com' acme.cert dev.example.com "[gitlab.example.com]" test_cert=True renew=14 webroot=/opt/gitlab/embedded/service/gitlab-rails/public
'''
cmd = [LEA, 'certonly', '--quiet']
cmd = [LEA, 'certonly', '--non-interactive']
cert_file = _cert_file(name, 'cert')
if not __salt__['file.file_exists'](cert_file):