|
|
|
|
|
|
|
|
{%- macro load_grains_file() %}{% include grains_fragment_file ignore missing %}{% endmacro %} |
|
|
{%- macro load_grains_file() %}{% include grains_fragment_file ignore missing %}{% endmacro %} |
|
|
{%- set grains_yaml = load_grains_file()|load_yaml %} |
|
|
{%- set grains_yaml = load_grains_file()|load_yaml %} |
|
|
{%- if grains_yaml is mapping %} |
|
|
{%- if grains_yaml is mapping %} |
|
|
{%- for node in grains_yaml.graph %} |
|
|
|
|
|
|
|
|
{%- for node in grains_yaml.graph if grains_yaml.graph %} |
|
|
{%- do service_grains.salt.graph.append(node) %} |
|
|
{%- do service_grains.salt.graph.append(node) %} |
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
{%- endif %} |
|
|
{%- endif %} |