Merge pull request #14800 from Security-Onion-Solutions/vlb2

only run storage state if box has nvme
This commit is contained in:
Josh Patterson
2025-07-01 16:36:31 -04:00
committed by GitHub
4 changed files with 7 additions and 1 deletions

View File

@@ -3,5 +3,11 @@
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.
{% set nvme_devices = salt['cmd.shell']("find /dev -name 'nvme*n1' 2>/dev/null") %}
{% if nvme_devices %}
include:
- storage.nsm_mount
{% endif %}

View File

@@ -23,7 +23,7 @@ storage_nsm_mount_logdir:
storage_nsm_mount_script:
file.managed:
- name: /usr/sbin/so-nsm-mount
- source: salt://storage/files/so-nsm-mount
- source: salt://storage/tools/sbin/so-nsm-mount
- mode: 755
- user: root
- group: root