Disable pkg-deps

Backend webservers do not need modsecurity installed. Comment out the
state and add comment about suggestion for making the modsecurity
installation based on a conditional in the future.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-04-29 23:34:12 +02:00
parent e1685ffbeb
commit a6f1fb91d5
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -4,6 +4,7 @@
{%- set tplroot = tpldir.split('/')[0] %} {%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import apache with context %} {%- from tplroot ~ "/map.jinja" import apache with context %}
{#- consider moving this to an optional state or enabling it with a pillar option
{%- if 'deps' in apache.pkg and apache.pkg.deps and apache.pkg.deps is iterable and apache.pkg.deps is not string %} {%- if 'deps' in apache.pkg and apache.pkg.deps and apache.pkg.deps is iterable and apache.pkg.deps is not string %}
apache-package-install-deps-pkg-installed: apache-package-install-deps-pkg-installed:
pkg.installed: pkg.installed:
@ -11,6 +12,7 @@ apache-package-install-deps-pkg-installed:
- require: - require:
- apache-package-install-pkg-installed - apache-package-install-pkg-installed
{%- endif %} {%- endif %}
#}
apache-package-install-pkg-installed: apache-package-install-pkg-installed:
{%- if grains.os_family == 'Windows' %} {%- if grains.os_family == 'Windows' %}