remote-challenge-sync-airbus: Pass arguments through metadata files

This commit is contained in:
nemunaire 2024-03-22 19:08:21 +01:00
commit 1e24d0ea25
3 changed files with 72 additions and 6 deletions

View file

@ -9,6 +9,9 @@ export IP_FIC_SRS_FR=$(host ${DOMAIN_NAME} | grep -o '\([0-9]\{1,3\}.\)\+')
export IPS_BACKEND="192.168.3.92/24\\n192.168.4.92/24"
export IP_BACKEND_ROUTER="192.168.3.1"
export AIRBUS_BASEURL="https://..."
export AIRBUS_TOKEN="abcdef0123456789abcdef0123456789"
export AIRBUS_SESSION_NAME="Forensique"
escape_newline () {
sed 's/$/\\n/g' | tr -d '\n'
@ -125,6 +128,22 @@ TEMPLATE='
}
}
},
"remote_sync": {
"entries": {
"baseurl": {
"perm": "0444",
"content": "${AIRBUS_BASEURL}"
},
"token": {
"perm": "0444",
"content": "${AIRBUS_TOKEN}"
},
"session_name": {
"perm": "0444",
"content": "${AIRBUS_SESSION_NAME}"
}
}
},
"tls_config": {
"entries": {
"dhparams-4096.pem": {