From: Javier BĂ©rtoli Date: Wed, 14 Apr 2021 20:20:13 +0000 (-0300) Subject: test(dependencies): add ssl certs dependencies so nginx does not fail X-Git-Url: https://git.arvados.org/arvados-formula.git/commitdiff_plain/5ce013435374b9697cb6d6a3fc3a3c7f35ae3279 test(dependencies): add ssl certs dependencies so nginx does not fail --- diff --git a/kitchen.yml b/kitchen.yml index d0f50c5..e47ea24 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -236,7 +236,7 @@ suites: source: https://github.com/saltstack-formulas/postgres-formula.git - name: nginx repo: git - source: https://github.com/netmanagers/nginx-formula.git + source: https://github.com/saltstack-formulas/nginx-formula.git state_top: base: '*': @@ -297,7 +297,7 @@ suites: path: test/salt/states/examples - name: nginx repo: git - source: https://github.com/netmanagers/nginx-formula.git + source: https://github.com/saltstack-formulas/nginx-formula.git state_top: base: '*': diff --git a/test/salt/states/examples/single_host/host_entries.sls b/test/salt/states/examples/single_host/host_entries.sls index 855757e..177ad18 100644 --- a/test/salt/states/examples/single_host/host_entries.sls +++ b/test/salt/states/examples/single_host/host_entries.sls @@ -3,6 +3,9 @@ {%- from "arvados/map.jinja" import arvados with context %} {%- set tpldir = curr_tpldir %} +include: + - nginx.config + arvados_test_salt_states_examples_single_host_etc_hosts_host_present: host.present: - ip: {{ grains.get('ipv4')[0] }} @@ -26,3 +29,5 @@ arvados_test_salt_states_examples_single_host_etc_hosts_host_present: - {{ entry }}.internal - {{ entry }}.{{ arvados.cluster.name }}.{{ arvados.cluster.domain }} {%- endfor %} + - require_in: + - file: nginx_config diff --git a/test/salt/states/examples/single_host/snakeoil_certs.sls b/test/salt/states/examples/single_host/snakeoil_certs.sls index f6e69b8..6f4e932 100644 --- a/test/salt/states/examples/single_host/snakeoil_certs.sls +++ b/test/salt/states/examples/single_host/snakeoil_certs.sls @@ -4,6 +4,8 @@ {%- set tpldir = curr_tpldir %} include: + - nginx.passenger + - nginx.config - nginx.service {%- set arvados_ca_cert_file = '/etc/ssl/certs/arvados-snakeoil-ca.pem' %} @@ -145,5 +147,8 @@ arvados_test_salt_states_examples_single_host_snakeoil_certs_nginx_snakeoil_file ssl_certificate_key {{ arvados_key_file }}; - watch_in: - service: nginx_service - - + - require: + - pkg: passenger_install + - cmd: arvados_test_salt_states_examples_single_host_snakeoil_certs_certs_permissions_cmd_run + - require_in: + - file: nginx_config