mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
26 lines
697 B
Plaintext
26 lines
697 B
Plaintext
{% from 'hypervisor/map.jinja' import HYPERVISORS %}
|
|
|
|
hypervisor_annotation:
|
|
file.managed:
|
|
- name: /opt/so/saltstack/default/salt/hypervisor/soc_hypervisor.yaml
|
|
- source: salt://soc/dyanno/hypervisor/soc_hypervisor.yaml.jinja
|
|
- template: jinja
|
|
- user: socore
|
|
- group: socore
|
|
- 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
|
|
- user: socore
|
|
- group: socore
|
|
- recurse:
|
|
- user
|
|
- group
|
|
{% endfor %}
|
|
{% endfor %}
|