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
|
|
|
'*':
|
2018-05-07 07:38:11 -05:00
|
|
|
{#- don't run update automatically on containers - updates will be triggered from their host -#}
|
|
|
|
|
{%- if pillar['grains']['roles'] is defined -%}
|
|
|
|
|
{%- if 'lxc_container' not in pillar['grains']['roles'] %}
|
2017-08-07 13:25:01 -05:00
|
|
|
- update
|
2018-05-07 07:38:11 -05:00
|
|
|
{%- endif -%}
|
|
|
|
|
{%- endif %}
|
|
|
|
|
- update.clean_cache
|
|
|
|
|
- update.update_containers
|
2017-08-07 13:25:01 -05:00
|
|
|
- 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
|
2017-11-12 11:25:07 -06:00
|
|
|
- systems.core.monitoring
|
2017-08-07 13:25:01 -05:00
|
|
|
- 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 -%}
|
2018-05-24 01:33:50 -05:00
|
|
|
{%- endfor %}
|
|
|
|
|
- systems.core.fstrim
|