mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #14800 from Security-Onion-Solutions/vlb2
only run storage state if box has nvme
This commit is contained in:
@@ -3,5 +3,11 @@
|
|||||||
# https://securityonion.net/license; you may not use this file except in compliance with the
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
||||||
# Elastic License 2.0.
|
# Elastic License 2.0.
|
||||||
|
|
||||||
|
|
||||||
|
{% set nvme_devices = salt['cmd.shell']("find /dev -name 'nvme*n1' 2>/dev/null") %}
|
||||||
|
{% if nvme_devices %}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- storage.nsm_mount
|
- storage.nsm_mount
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ storage_nsm_mount_logdir:
|
|||||||
storage_nsm_mount_script:
|
storage_nsm_mount_script:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /usr/sbin/so-nsm-mount
|
- name: /usr/sbin/so-nsm-mount
|
||||||
- source: salt://storage/files/so-nsm-mount
|
- source: salt://storage/tools/sbin/so-nsm-mount
|
||||||
- mode: 755
|
- mode: 755
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
|
|||||||
Reference in New Issue
Block a user