12 lines
312 B
Text
12 lines
312 B
Text
{%- from "roles.jinja" import roles with context %}
|
|
{% set states = salt['cp.list_states'](saltenv) %}
|
|
include:
|
|
- roles.git.none
|
|
|
|
{%- if roles is not none -%}
|
|
{%- for role in roles %}
|
|
{%- if 'pillars.roles.git.'+role in states %}
|
|
- roles.git.{{ role }}
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
{%- endif -%}
|