20969: Reloads nginx when custom TLS cert and key files change.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 12 Oct 2023 21:14:39 +0000 (18:14 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 13 Oct 2023 19:54:09 +0000 (16:54 -0300)
commit42d962946371fa4d388f834da3f301b3912648f3
treed4177cd38a05985fcd552b41191ec82db323620b
parent266c340d47ed162c44e0e3d321619734d4500109
20969: Reloads nginx when custom TLS cert and key files change.

The way it's implemented may appear overly complicated, but we do the extra
check to avoid restarting nginx with a crt file that doesn't correspond to
the key file. This will happen otherwise, as 'cmd.run' will get executed on
any of the files listed inside 'onchanges'.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
tools/salt-install/config_examples/multi_host/aws/states/custom_certs.sls
tools/salt-install/config_examples/single_host/multiple_hostnames/states/custom_certs.sls
tools/salt-install/config_examples/single_host/single_hostname/states/custom_certs.sls
tools/salt-install/provision.sh