mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-01 18:31:50 +02:00
Simplifies salt states, map files, and modules to only support Oracle Linux 9, removing all Debian/Ubuntu/CentOS/Rocky/AlmaLinux/RHEL conditional branches.
23 lines
538 B
Plaintext
23 lines
538 B
Plaintext
{% from "idh/openssh/map.jinja" import openssh_map with context %}
|
|
|
|
include:
|
|
- idh.openssh
|
|
|
|
idh_sshd_selinux:
|
|
selinux.port_policy_present:
|
|
- port: {{ openssh_map.config.port }}
|
|
- protocol: tcp
|
|
- sel_type: ssh_port_t
|
|
- prereq:
|
|
- file: openssh_config
|
|
- require:
|
|
- pkg: python_selinux_mgmt_tools
|
|
|
|
openssh_config:
|
|
file.replace:
|
|
- name: {{ openssh_map.conf }}
|
|
- pattern: '(^|^#)Port \d+$'
|
|
- repl: 'Port {{ openssh_map.config.port }}'
|
|
- watch_in:
|
|
- service: {{ openssh_map.service }}
|