Merge pull request #1297 from Security-Onion-Solutions/experimental

Add Airgap code
This commit is contained in:
Mike Reeves
2020-09-08 09:26:41 -04:00
committed by GitHub
7 changed files with 193 additions and 78 deletions
+8 -1
View File
@@ -9,17 +9,24 @@
{%- set STRELKA = salt['pillar.get']('strelka:enabled', '0') -%}
{% import_yaml 'salt/minion.defaults.yaml' as salt %}
{% set saltversion = salt.salt.minion.version %}
{% set ISAIRGAP = salt['pillar.get']('global:airgap') %}
base:
'not G@saltversion:{{saltversion}}':
- match: compound
{% if ISAIRGAP is sameas true %}
- airgap
{% endif %}
- salt.minion
'G@os:CentOS and G@saltversion:{{saltversion}}':
- match: compound
{% if ISAIRGAP is sameas true %}
- airgap
{% else %}
- yum
{% endif %}
- yum.packages
'* and G@saltversion:{{saltversion}}':