change role names in so-firewall-minion

This commit is contained in:
m0duspwnens
2023-01-06 11:09:09 -05:00
parent cb1822a62d
commit 4aacc6d1db

View File

@@ -49,33 +49,30 @@ fi
case "$ROLE" in case "$ROLE" in
'MANAGER') 'MANAGER')
so-firewall includehost manager "$IP" so-firewall --role=manager --ip="$IP"
so-firewall --apply includehost minion "$IP"
;; ;;
'EVAL' | 'MANAGERSEARCH' | 'STANDALONE' | 'IMPORT') 'EVAL' | 'MANAGERSEARCH' | 'STANDALONE' | 'IMPORT')
so-firewall includehost manager "$IP" so-firewall --role=manager --ip="$IP"
so-firewall includehost minion "$IP" so-firewall --role=sensors --ip="$IP"
so-firewall includehost sensor "$IP" so-firewall --apply --role=searchnodes --ip="$IP"
so-firewall --apply includehost search_node "$IP"
;; ;;
'SENSOR' | 'SEARCHNODE' | 'HEAVYNODE' | 'IDH' | 'RECEIVER') 'SENSOR' | 'SEARCHNODE' | 'HEAVYNODE' | 'IDH' | 'RECEIVER')
so-firewall includehost minion "$IP"
case "$ROLE" in case "$ROLE" in
'SENSOR') 'SENSOR')
so-firewall --apply includehost sensor "$IP" so-firewall --apply --role=sensors --ip="$IP"
;; ;;
'SEARCHNODE') 'SEARCHNODE')
so-firewall --apply includehost search_node "$IP" so-firewall --apply --role=searchnodes --ip="$IP"
;; ;;
'HEAVYNODE') 'HEAVYNODE')
so-firewall includehost sensor "$IP" so-firewall --role=sensors --ip="$IP"
so-firewall --apply includehost heavy_node "$IP" so-firewall --apply --role=heavynodes --ip="$IP"
;; ;;
'IDH') 'IDH')
so-firewall --apply includehost beats_endpoint_ssl "$IP" so-firewall --apply --role=beats_endpoint_ssl --ip="$IP"
;; ;;
'RECEIVER') 'RECEIVER')
so-firewall --apply includehost receiver "$IP" so-firewall --apply --role=receivers --ip="$IP"
;; ;;
esac esac
;; ;;