add desktop to grid

This commit is contained in:
m0duspwnens
2023-08-23 15:24:32 -04:00
parent f278056493
commit a885baf960
2 changed files with 17 additions and 9 deletions

View File

@@ -187,15 +187,9 @@ function add_logstash_to_minion() {
# Security Onion Desktop
function add_desktop_to_minion() {
printf '%s\n'\
"host:"\
" mainint: '$MNIC'"\
"desktop:"\
" gui:"\
" enabled: true"\
"sensoroni:"\
" enabled: True"\
" config:"\
" node_description: '${NODE_DESCRIPTION//\'/''}'" >> $PILLARFILE
" enabled: true"\ >> $PILLARFILE
}
# Add basic host info to the minion file
@@ -556,6 +550,9 @@ function createRECEIVER() {
add_telegraf_to_minion
}
function createDESKTOP() {
add_desktop_to_minion
}
function testConnection() {
retry 15 3 "salt '$MINION_ID' test.ping" True