Procházet zdrojové kódy

formula, service symlinks. force/makedirs True

fix/force_symlinks
Petr Michalec před 7 roky
rodič
revize
91e16770e8
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 16 přidání a 0 odebrání
  1. +16
    -0
      salt/master/env.sls

+ 16
- 0
salt/master/env.sls Zobrazit soubor

@@ -240,6 +240,8 @@ salt_env_{{ environment_name }}_{{ formula_name }}_link:
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/{{ formula_name }}
- require:
- file: salt_env_{{ environment_name }}_dirs
- force: True
- makedirs: True

{%- for grain_name, grain in formula.get('grain', {}).iteritems() %}

@@ -247,6 +249,8 @@ salt_master_{{ environment_name }}_{{ grain_name }}_grain:
file.symlink:
- name: /usr/share/salt-formulas/env/_grains/{{ grain_name }}
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_grains/{{ grain_name }}
- force: True
- makedirs: True

{%- endfor %}

@@ -256,6 +260,8 @@ salt_master_{{ environment_name }}_{{ module_name }}_module:
file.symlink:
- name: /usr/share/salt-formulas/env/_modules/{{ module_name }}
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_modules/{{ module_name }}
- force: True
- makedirs: True

{%- endfor %}

@@ -265,6 +271,8 @@ salt_master_{{ environment_name }}_{{ state_name }}_state:
file.symlink:
- name: /usr/share/salt-formulas/env/_states/{{ state_name }}
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_states/{{ state_name }}
- force: True
- makedirs: True

{%- endfor %}

@@ -285,6 +293,8 @@ salt_env_{{ environment_name }}_{{ formula_name }}_link:
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/{{ formula_name }}
- require:
- file: salt_env_{{ environment_name }}_dirs
- force: True
- makedirs: True

{%- for grain_name, grain in formula.get('grain', {}).iteritems() %}

@@ -292,6 +302,8 @@ salt_master_{{ environment_name }}_{{ grain_name }}_grain:
file.symlink:
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ grain_name }}
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ grain_name }}
- force: True
- makedirs: True

{%- endfor %}

@@ -301,6 +313,8 @@ salt_master_{{ environment_name }}_{{ module_name }}_module:
file.symlink:
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ module_name }}
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ module_name }}
- force: True
- makedirs: True

{%- endfor %}

@@ -310,6 +324,8 @@ salt_master_{{ environment_name }}_{{ state_name }}_state:
file.symlink:
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ state_name }}
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ state_name }}
- force: True
- makedirs: True

{%- endfor %}


Načítá se…
Zrušit
Uložit