fix(certificates): ensure openssl installed before cmd.run

Fix failure highlighted on OpenSUSE Tumbleweed, where the `cmd.run` runs
before the `pkg.installed`:

* https://gitlab.com/saltstack-formulas/nginx-formula/-/jobs/1345325819#L2830
This commit is contained in:
Imran Iqbal 2021-06-14 18:31:06 +01:00
parent 6cb486dbd2
commit 0cd7c7b205
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819

View File

@ -30,6 +30,7 @@ generate_nginx_dhparam_{{ dh_param }}_key:
- creates: {{ certificates_path }}/{{ dh_param }}
- require:
- file: prepare_certificates_path_dir
- pkg: generate_nginx_dhparam_{{ dh_param }}_key
- watch_in:
- service: nginx_service
{%- endif %}