forked from wazuh/wazuh-docker
Enabling extra Wazuh APP extensions
This commit is contained in:
+22
-21
@@ -24,28 +24,29 @@ echo "Setting API credentials into Wazuh APP"
|
|||||||
CONFIG_CODE=$(curl -s -o /dev/null -w "%{http_code}" -XGET $el_url/.wazuh/wazuh-configuration/1513629884013)
|
CONFIG_CODE=$(curl -s -o /dev/null -w "%{http_code}" -XGET $el_url/.wazuh/wazuh-configuration/1513629884013)
|
||||||
if [ "x$CONFIG_CODE" = "x404" ]; then
|
if [ "x$CONFIG_CODE" = "x404" ]; then
|
||||||
curl -s -XPOST $el_url/.wazuh/wazuh-configuration/1513629884013 -H 'Content-Type: application/json' -d'
|
curl -s -XPOST $el_url/.wazuh/wazuh-configuration/1513629884013 -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"api_user": "foo",
|
"api_user": "foo",
|
||||||
"api_password": "YmFy",
|
"api_password": "YmFy",
|
||||||
"url": "https://wazuh",
|
"url": "https://wazuh",
|
||||||
"api_port": "55000",
|
"api_port": "55000",
|
||||||
"insecure": "true",
|
"insecure": "true",
|
||||||
"component": "API",
|
"component": "API",
|
||||||
"cluster_info": {
|
"cluster_info": {
|
||||||
"manager": "wazuh-manager",
|
"manager": "wazuh-manager",
|
||||||
"cluster": "Disabled",
|
"cluster": "Disabled",
|
||||||
"status": "disabled"
|
"status": "disabled"
|
||||||
},
|
},
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"oscap": true,
|
"oscap": true,
|
||||||
"audit": true,
|
"audit": true,
|
||||||
"pci": true,
|
"pci": true,
|
||||||
"aws": true,
|
"aws": true,
|
||||||
"virustotal": true,
|
"virustotal": true,
|
||||||
"gdpr": true
|
"gdpr": true,
|
||||||
}
|
"ciscat": true
|
||||||
}
|
}
|
||||||
' > /dev/null
|
}
|
||||||
|
' > /dev/null
|
||||||
else
|
else
|
||||||
echo "Wazuh APP already configured"
|
echo "Wazuh APP already configured"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user