mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Escape single quotes and allow for any character in node description
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
"agent": {
|
"agent": {
|
||||||
"nodeId": "{{ grains.host | lower }}",
|
"nodeId": "{{ grains.host | lower }}",
|
||||||
"role": "{{ grains.role }}",
|
"role": "{{ grains.role }}",
|
||||||
"description": "{{ DESCRIPTION }}",
|
"description": {{ DESCRIPTION | tojson }},
|
||||||
"address": "{{ ADDRESS }}",
|
"address": "{{ ADDRESS }}",
|
||||||
"model": "{{ MODEL }}",
|
"model": "{{ MODEL }}",
|
||||||
"pollIntervalMs": {{ CHECKININTERVALMS if CHECKININTERVALMS else 10000 }},
|
"pollIntervalMs": {{ CHECKININTERVALMS if CHECKININTERVALMS else 10000 }},
|
||||||
|
|||||||
@@ -1509,7 +1509,7 @@ host_pillar() {
|
|||||||
" mainint: '$MNIC'"\
|
" mainint: '$MNIC'"\
|
||||||
"sensoroni:"\
|
"sensoroni:"\
|
||||||
" node_address: '$MAINIP'"\
|
" node_address: '$MAINIP'"\
|
||||||
" node_description: '$NODE_DESCRIPTION'"\
|
" node_description: '${NODE_DESCRIPTION//\'/''}'"\
|
||||||
"" > "$pillar_file"
|
"" > "$pillar_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user