diff options
author | Georg Pfuetzenreuter | 2023-04-30 19:58:19 +0200 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-04-30 19:58:19 +0200 |
commit | d8263f9b8034e0d5c920232811142d589c5ae73e (patch) | |
tree | 587f3c882e590b08e385fdabca3816e0597a34d1 | |
parent | 21f8818a526be57d4da1fe573bf5ab9b4a5b5f1e (diff) | |
parent | 269b30ce9f53263dfa8f41a4fda63642e56793fc (diff) | |
download | salt-d8263f9b8034e0d5c920232811142d589c5ae73e.tar.gz salt-d8263f9b8034e0d5c920232811142d589c5ae73e.tar.bz2 salt-d8263f9b8034e0d5c920232811142d589c5ae73e.zip |
Merge pull request 'Exclude libX11 removal for FPM hosts' (#54) from libX11-php into production
Reviewed-on: https://git.com.de/LibertaCasa/salt/pulls/54
-rwxr-xr-x | bin/nbroles_to_grains.sh | 2 | ||||
-rw-r--r-- | salt/common/suse.sls | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bin/nbroles_to_grains.sh b/bin/nbroles_to_grains.sh index ee4e726..85cb52c 100755 --- a/bin/nbroles_to_grains.sh +++ b/bin/nbroles_to_grains.sh @@ -1,4 +1,4 @@ #!/usr/bin/env sh # This rewrites top-files to fetch roles from grains instead of our custom roles API. Useful for testing outside of the LibertaCasa infrastructure, but not recommended for production. -sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" */top.sls +sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" */top.sls salt/common/suse.sls diff --git a/salt/common/suse.sls b/salt/common/suse.sls index 01c7333..da0a99e 100644 --- a/salt/common/suse.sls +++ b/salt/common/suse.sls @@ -1,3 +1,5 @@ +{%- set roles = salt['http.query']('http://machine-roles.lysergic.dev:4580/roles', decode=True, decode_type='json', params={"machine": id})['dict']['roles'] -%} + include: {#- drop pillar check after all firewall configurations have been imported #} {%- if salt['pillar.get']('manage_firewall'), False %} @@ -65,7 +67,9 @@ common_packages_remove: {#- we only use AutoYaST for the OS deployment #} - autoyast2 - autoyast2-installation + {%- if not 'php-fpm' in roles %} - libX11-data + {%- endif %} - yast2-add-on - yast2-services-manager - yast2-slp |