enabled/disable soctopus in ui

This commit is contained in:
m0duspwnens
2023-05-11 13:57:08 -04:00
parent 03e7636a18
commit a3b97b40ba
10 changed files with 224 additions and 114 deletions

View File

@@ -295,6 +295,13 @@ function add_nginx_to_minion() {
" " >> $PILLARFILE
}
function add_soctopus_to_minion() {
printf '%s\n'\
"soctopus:"\
" enabled: True"\
" " >> $PILLARFILE
}
function create_fleet_policy() {
JSON_STRING=$( jq -n \
@@ -348,6 +355,7 @@ function createEVAL() {
add_telegraf_to_minion
add_influxdb_to_minion
add_nginx_to_minion
add_soctopus_to_minion
}
function createSTANDALONE() {
@@ -363,6 +371,7 @@ function createSTANDALONE() {
add_telegraf_to_minion
add_influxdb_to_minion
add_nginx_to_minion
add_soctopus_to_minion
}
function createMANAGER() {
@@ -376,6 +385,7 @@ function createMANAGER() {
add_telegraf_to_minion
add_influxdb_to_minion
add_nginx_to_minion
add_soctopus_to_minion
}
function createMANAGERSEARCH() {
@@ -389,6 +399,7 @@ function createMANAGERSEARCH() {
add_telegraf_to_minion
add_influxdb_to_minion
add_nginx_to_minion
add_soctopus_to_minion
}
function createIMPORT() {