fickit: Add IP config in metadatas
This commit is contained in:
parent
bed79b947b
commit
3c8ba3ecc2
3 changed files with 40 additions and 3 deletions
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
set -e
|
||||
|
||||
export DOMAIN_NAME="live.fic.srs.epita.fr"
|
||||
export IP_FRONTEND="10.42.192.3/24"
|
||||
export IP_FRONTEND_ROUTER="10.42.192.1"
|
||||
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"
|
||||
|
||||
|
||||
escape_newline () {
|
||||
sed 's/$/\\n/g' | tr -d '\n'
|
||||
|
|
@ -94,6 +101,30 @@ TEMPLATE='
|
|||
}
|
||||
}
|
||||
},
|
||||
"ip_config": {
|
||||
"entries": {
|
||||
"frontend-players": {
|
||||
"perm": "0444",
|
||||
"content": "${IP_FRONTEND}\\n${IP_FIC_SRS_FR}"
|
||||
},
|
||||
"frontend-router": {
|
||||
"perm": "0444",
|
||||
"content": "${IP_FRONTEND_ROUTER}"
|
||||
},
|
||||
"backend-admin": {
|
||||
"perm": "0444",
|
||||
"content": "${IPS_BACKEND}"
|
||||
},
|
||||
"backend-router": {
|
||||
"perm": "0444",
|
||||
"content": "${IP_BACKEND_ROUTER}"
|
||||
},
|
||||
"domain": {
|
||||
"perm": "0444",
|
||||
"content": "${DOMAIN_NAME}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tls_config": {
|
||||
"entries": {
|
||||
"dhparams-4096.pem": {
|
||||
|
|
|
|||
Reference in a new issue