mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-14 14:18:40 +02:00
add states to remove ca and ssl keys and certs and call them during reinstall.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
{% if grains.role in ['so-helix', 'so-eval', 'so-manager', 'so-standalone', 'so-managersearch', 'so-import' ] %}
|
||||
|
||||
pki_private_key:
|
||||
file.absent:
|
||||
- name: /etc/pki/ca.key
|
||||
|
||||
pki_public_ca_crt:
|
||||
file.absent:
|
||||
- name: /etc/pki/ca.crt
|
||||
|
||||
{% else %}
|
||||
|
||||
not_a_ca:
|
||||
test.succeed_without_changes:
|
||||
- name: no_ca
|
||||
- comment: "Not a CA, so no CA to remove."
|
||||
|
||||
{% endif %}
|
||||
|
||||
remove_ca-certificates.crt:
|
||||
file.absent:
|
||||
- name: /etc/ssl/certs/ca-certificates.crt
|
||||
Reference in New Issue
Block a user