reenabled top
This commit is contained in:
parent
dc31eab5fd
commit
52f597bc73
2 changed files with 40 additions and 43 deletions
|
@ -1,3 +1,41 @@
|
||||||
dev:
|
|
||||||
'*':
|
{%- set states = salt['cp.list_states'](saltenv) -%}
|
||||||
|
{%- set envs = ['prod','dev'] -%}
|
||||||
|
{% for env in envs %}
|
||||||
|
{{ env }}:
|
||||||
|
'os_family:RedHat':
|
||||||
|
- match: grain_pcre
|
||||||
|
- repos.epel
|
||||||
|
'os_family:Arch':
|
||||||
|
- match: grain_pcre
|
||||||
- repos.aur
|
- repos.aur
|
||||||
|
- systems.arch.mirrors
|
||||||
|
- systems.core.freeipa
|
||||||
|
'*':
|
||||||
|
{#- 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'] %}
|
||||||
|
- update
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endif %}
|
||||||
|
- update.clean_cache
|
||||||
|
- update.update_containers
|
||||||
|
- basepkgs
|
||||||
|
- grains
|
||||||
|
- bashrc
|
||||||
|
- systems.core.firewalld
|
||||||
|
- systems.core.monitoring
|
||||||
|
- systems.core.mount
|
||||||
|
- systems.core.git
|
||||||
|
- systems.core.backup
|
||||||
|
{%- 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 %}
|
||||||
|
- systems.core.fstrim
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
|
|
||||||
{%- set states = salt['cp.list_states'](saltenv) -%}
|
|
||||||
{%- set envs = ['prod','dev'] -%}
|
|
||||||
{% for env in envs %}
|
|
||||||
{{ env }}:
|
|
||||||
'os_family:RedHat':
|
|
||||||
- match: grain_pcre
|
|
||||||
- repos.epel
|
|
||||||
'os_family:Arch':
|
|
||||||
- match: grain_pcre
|
|
||||||
- repos.aur
|
|
||||||
- systems.arch.mirrors
|
|
||||||
- systems.core.freeipa
|
|
||||||
'*':
|
|
||||||
{#- 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'] %}
|
|
||||||
- update
|
|
||||||
{%- endif -%}
|
|
||||||
{%- endif %}
|
|
||||||
- update.clean_cache
|
|
||||||
- update.update_containers
|
|
||||||
- basepkgs
|
|
||||||
- grains
|
|
||||||
- bashrc
|
|
||||||
- systems.core.firewalld
|
|
||||||
- systems.core.monitoring
|
|
||||||
- systems.core.mount
|
|
||||||
- systems.core.git
|
|
||||||
- systems.core.backup
|
|
||||||
{%- 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 %}
|
|
||||||
- systems.core.fstrim
|
|
Loading…
Add table
Reference in a new issue