2017-08-07 13:25:01 -05:00
|
|
|
|
|
|
|
|
{%- set states = salt['cp.list_states'](saltenv) -%}
|
|
|
|
|
{%- set envs = ['prod','dev'] -%}
|
|
|
|
|
{% for env in envs %}
|
|
|
|
|
{{ env }}:
|
2017-10-07 17:10:16 -05:00
|
|
|
'os_family:RedHat':
|
2017-08-07 13:25:01 -05:00
|
|
|
- match: grain_pcre
|
|
|
|
|
- repos.epel
|
2017-10-07 17:10:16 -05:00
|
|
|
'os_family:Arch':
|
2017-08-07 13:25:01 -05:00
|
|
|
- match: grain_pcre
|
|
|
|
|
- repos.aur
|
|
|
|
|
- systems.arch.mirrors
|
2017-10-30 13:30:05 -05:00
|
|
|
- systems.core.freeipa
|
2017-08-07 13:25:01 -05:00
|
|
|
'*':
|
|
|
|
|
- update
|
|
|
|
|
- basepkgs
|
2017-09-27 15:34:48 -05:00
|
|
|
- grains
|
2017-10-07 17:10:16 -05:00
|
|
|
- bashrc
|
2017-08-07 13:25:01 -05:00
|
|
|
- systems.core.firewalld
|
|
|
|
|
- systems.core.mount
|
|
|
|
|
- systems.core.git
|
2017-08-21 20:31:12 +00:00
|
|
|
- systems.core.backup
|
2017-08-07 13:25:01 -05:00
|
|
|
{%- if grains['roles'] is defined -%}
|
|
|
|
|
{%- if grains['roles'] is not none -%}
|
|
|
|
|
{%- for role in grains['roles'] %}
|
|
|
|
|
{%- if 'roles.maintain.'+role in states %}
|
|
|
|
|
- roles.maintain.{{role}}
|
|
|
|
|
{%- endif -%}
|
|
|
|
|
{%- endfor -%}
|
|
|
|
|
{%- endif -%}
|
|
|
|
|
{%- endif -%}
|
|
|
|
|
{%- endfor -%}
|