mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Merge pull request #12290 from petiepooo/fix-remove-intca-symlink
fix: also remove intca symlink
This commit is contained in:
@@ -2,6 +2,10 @@ trusttheca:
|
|||||||
file.absent:
|
file.absent:
|
||||||
- name: /etc/pki/tls/certs/intca.crt
|
- name: /etc/pki/tls/certs/intca.crt
|
||||||
|
|
||||||
|
symlinkca:
|
||||||
|
file.absent:
|
||||||
|
- name: /etc/ssl/certs/intca.crt
|
||||||
|
|
||||||
influxdb_key:
|
influxdb_key:
|
||||||
file.absent:
|
file.absent:
|
||||||
- name: /etc/pki/influxdb.key
|
- name: /etc/pki/influxdb.key
|
||||||
|
|||||||
@@ -1600,6 +1600,9 @@ reinstall_init() {
|
|||||||
salt-call -l info saltutil.kill_all_jobs --local
|
salt-call -l info saltutil.kill_all_jobs --local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
logCmd "salt-call state.apply ca.remove -linfo --local --file-root=../salt"
|
||||||
|
logCmd "salt-call state.apply ssl.remove -linfo --local --file-root=../salt"
|
||||||
|
|
||||||
# Kill any salt processes (safely)
|
# Kill any salt processes (safely)
|
||||||
for service in "${salt_services[@]}"; do
|
for service in "${salt_services[@]}"; do
|
||||||
# Stop the service in the background so we can exit after a certain amount of time
|
# Stop the service in the background so we can exit after a certain amount of time
|
||||||
@@ -1621,9 +1624,6 @@ reinstall_init() {
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
logCmd "salt-call state.apply ca.remove -linfo --local --file-root=../salt"
|
|
||||||
logCmd "salt-call state.apply ssl.remove -linfo --local --file-root=../salt"
|
|
||||||
|
|
||||||
# Remove all salt configs
|
# Remove all salt configs
|
||||||
rm -rf /etc/salt/engines/* /etc/salt/grains /etc/salt/master /etc/salt/master.d/* /etc/salt/minion /etc/salt/minion.d/* /etc/salt/pki/* /etc/salt/proxy /etc/salt/proxy.d/* /var/cache/salt/
|
rm -rf /etc/salt/engines/* /etc/salt/grains /etc/salt/master /etc/salt/master.d/* /etc/salt/minion /etc/salt/minion.d/* /etc/salt/pki/* /etc/salt/proxy /etc/salt/proxy.d/* /var/cache/salt/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user