mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
dynamic annotations
This commit is contained in:
@@ -1,5 +1,28 @@
|
||||
{% from 'soc/dynamic_annotations/hypervisor/map.jinja' import HYPERVISORS %}
|
||||
|
||||
hypervisor_annotation:
|
||||
file.managed:
|
||||
- name: /opt/so/saltstack/default/salt/hypervisor/soc_hypervisor.yaml
|
||||
- source: salt://soc/dynamic_annotations/hypervisor/soc_hypervisor.yaml.jinja
|
||||
- template: jinja
|
||||
- defaults:
|
||||
HYPERVISORS: {{ HYPERVISORS }}
|
||||
|
||||
{% for role in HYPERVISORS %}
|
||||
{% for hypervisor in HYPERVISORS[role].keys() %}
|
||||
hypervisor_host_directory_{{hypervisor}}:
|
||||
file.directory:
|
||||
- name: /opt/so/saltstack/local/salt/hypervisor/hosts/{{hypervisor}}
|
||||
- makedirs: True
|
||||
|
||||
add_searchnode_file_{{hypervisor}}:
|
||||
file.managed:
|
||||
- name: /opt/so/saltstack/local/salt/hypervisor/hosts/{{hypervisor}}/add_searchnode
|
||||
- source: salt://soc/dynamic_annotations/hypervisor/add_node
|
||||
|
||||
add_sensor_file_{{hypervisor}}:
|
||||
file.managed:
|
||||
- name: /opt/so/saltstack/local/salt/hypervisor/hosts/{{hypervisor}}/add_sensor
|
||||
- source: salt://soc/dynamic_annotations/hypervisor/add_node
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user