mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-23 13:11:57 +02:00
change how we allow or disallow states to be run https://github.com/Security-Onion-Solutions/securityonion/issues/2679
This commit is contained in:
@@ -12,10 +12,8 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% set show_top = salt['state.show_top']() %}
|
||||
{% set top_states = show_top.values() | join(', ') %}
|
||||
|
||||
{% if 'idstools' in top_states %}
|
||||
{% from 'allowed_states.map.jinja' import allowed_states %}
|
||||
{% if sls in allowed_states %}
|
||||
|
||||
{% set VERSION = salt['pillar.get']('global:soversion', 'HH1.2.2') %}
|
||||
{% set IMAGEREPO = salt['pillar.get']('global:imagerepo') %}
|
||||
@@ -83,8 +81,8 @@ append_so-idstools_so-status.conf:
|
||||
|
||||
{% else %}
|
||||
|
||||
idstools_state_not_allowed:
|
||||
{{sls}}_state_not_allowed:
|
||||
test.fail_without_changes:
|
||||
- name: idstools_state_not_allowed
|
||||
- name: {{sls}}_state_not_allowed
|
||||
|
||||
{% endif%}
|
||||
|
||||
Reference in New Issue
Block a user