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:
'*':
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:
'*':
{%- 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] }}
- {{ entry }}.internal
- {{ entry }}.{{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
{%- endfor %}
+ - require_in:
+ - file: nginx_config
{%- set tpldir = curr_tpldir %}
include:
+ - nginx.passenger
+ - nginx.config
- nginx.service
{%- set arvados_ca_cert_file = '/etc/ssl/certs/arvados-snakeoil-ca.pem' %}
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