mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
18 lines
565 B
Plaintext
18 lines
565 B
Plaintext
{# This state is designed to only manage the openssh server settings of an IDH node and is seperate from the ssh setting for OpenCanary #}
|
|
{% from "idh/openssh/map.jinja" import openssh_map with context %}
|
|
|
|
openssh:
|
|
pkg.installed:
|
|
- name: {{ openssh_map.server }}
|
|
{% if openssh_map.enable is sameas true %}
|
|
service.running:
|
|
- enable: {{ openssh_map.enable }}
|
|
- name: {{ openssh_map.service }}
|
|
- require:
|
|
- pkg: {{ openssh_map.server }}
|
|
{% else %}
|
|
service.dead:
|
|
- enable: False
|
|
- name: {{ openssh_map.service }}
|
|
{% endif %}
|