Compare commits

..

No commits in common. "d8263f9b8034e0d5c920232811142d589c5ae73e" and "21f8818a526be57d4da1fe573bf5ab9b4a5b5f1e" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/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. # 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 salt/common/suse.sls sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" */top.sls

View File

@ -1,5 +1,3 @@
{%- set roles = salt['http.query']('http://machine-roles.lysergic.dev:4580/roles', decode=True, decode_type='json', params={"machine": id})['dict']['roles'] -%}
include: include:
{#- drop pillar check after all firewall configurations have been imported #} {#- drop pillar check after all firewall configurations have been imported #}
{%- if salt['pillar.get']('manage_firewall'), False %} {%- if salt['pillar.get']('manage_firewall'), False %}
@ -67,9 +65,7 @@ common_packages_remove:
{#- we only use AutoYaST for the OS deployment #} {#- we only use AutoYaST for the OS deployment #}
- autoyast2 - autoyast2
- autoyast2-installation - autoyast2-installation
{%- if not 'php-fpm' in roles %}
- libX11-data - libX11-data
{%- endif %}
- yast2-add-on - yast2-add-on
- yast2-services-manager - yast2-services-manager
- yast2-slp - yast2-slp