mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
fix filebeat certs
This commit is contained in:
@@ -37,6 +37,16 @@ m2cryptopkgs:
|
|||||||
- python-m2crypto
|
- python-m2crypto
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
removefbcertdir:
|
||||||
|
file.absent:
|
||||||
|
- name: /etc/pki/filebeat.crt
|
||||||
|
- onlyif: "[ -d /etc/pki/filebeat.crt ]"
|
||||||
|
|
||||||
|
removefbp8dir:
|
||||||
|
file.absent:
|
||||||
|
- name: /etc/pki/filebeat.p8
|
||||||
|
- onlyif: "[ -d /etc/pki/filebeat.p8 ]"
|
||||||
|
|
||||||
/etc/pki/influxdb.key:
|
/etc/pki/influxdb.key:
|
||||||
x509.private_key_managed:
|
x509.private_key_managed:
|
||||||
- CN: {{ manager }}
|
- CN: {{ manager }}
|
||||||
@@ -370,18 +380,7 @@ fleetkeyperms:
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if grains['role'] in ['so-sensor', 'so-manager', 'so-node', 'so-searchnode', 'so-eval', 'so-helix', 'so-managersearch', 'so-heavynode', 'so-fleet', 'so-standalone', 'so-import'] %}
|
{% if grains['role'] in ['so-sensor', 'so-manager', 'so-node', 'so-searchnode', 'so-eval', 'so-helix', 'so-managersearch', 'so-heavynode', 'so-fleet', 'so-standalone', 'so-import'] %}
|
||||||
|
|
||||||
removefbcertdir:
|
|
||||||
file.absent:
|
|
||||||
- name: /etc/pki/filebeat.crt
|
|
||||||
- onlyif: "[ -d /etc/pki/filebeat.crt ]"
|
|
||||||
|
|
||||||
removefbp8dir:
|
|
||||||
file.absent:
|
|
||||||
- name: /etc/pki/filebeat.p8
|
|
||||||
- onlyif: "[ -d /etc/pki/filebeat.p8 ]"
|
|
||||||
|
|
||||||
|
|
||||||
fbcertdir:
|
fbcertdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/so/conf/filebeat/etc/pki
|
- name: /opt/so/conf/filebeat/etc/pki
|
||||||
|
|||||||
Reference in New Issue
Block a user