Make more use of .env file for populating configuration in .yaml files
This commit is contained in:
@@ -9,8 +9,8 @@ parameter:
|
||||
|
||||
pcrf:
|
||||
freeDiameter:
|
||||
identity: pcrf.epc.mnc001.mcc001.3gppnetwork.org
|
||||
realm: epc.mnc001.mcc001.3gppnetwork.org
|
||||
identity: pcrf.EPC_DOMAIN
|
||||
realm: EPC_DOMAIN
|
||||
port: 3868
|
||||
sec_port: 5868
|
||||
listen_on: PCRF_IP
|
||||
@@ -24,9 +24,9 @@ pcrf:
|
||||
- module: /open5gs/install/lib/x86_64-linux-gnu/freeDiameter/dict_dcca.fdx
|
||||
- module: /open5gs/install/lib/x86_64-linux-gnu/freeDiameter/dict_dcca_3gpp.fdx
|
||||
connect:
|
||||
- identity: pgw.epc.mnc001.mcc001.3gppnetwork.org
|
||||
- identity: pgw.EPC_DOMAIN
|
||||
addr: PGW_IP
|
||||
port: 3868
|
||||
- identity: pcscf.ims.mnc001.mcc001.3gppnetwork.org
|
||||
addr: 10.4.128.21
|
||||
- identity: pcscf.IMS_DOMAIN
|
||||
addr: PCSCF_IP
|
||||
port: 3871
|
||||
|
@@ -28,9 +28,13 @@
|
||||
|
||||
export IP_ADDR=$(awk 'END{print $1}' /etc/hosts)
|
||||
|
||||
[ ${#MNC} == 3 ] && EPC_DOMAIN="epc.mnc${MNC}.mcc${MCC}.3gppnetwork.org" || EPC_DOMAIN="epc.mnc0${MNC}.mcc${MCC}.3gppnetwork.org"
|
||||
[ ${#MNC} == 3 ] && IMS_DOMAIN="ims.mnc${MNC}.mcc${MCC}.3gppnetwork.org" || IMS_DOMAIN="ims.mnc0${MNC}.mcc${MCC}.3gppnetwork.org"
|
||||
|
||||
cp /mnt/pcrf/pcrf.yaml install/etc/open5gs
|
||||
sed -i 's|MONGO_IP|'$MONGO_IP'|g' install/etc/open5gs/pcrf.yaml
|
||||
sed -i 's|NAME|'$NAME'|g' install/etc/open5gs/pcrf.yaml
|
||||
sed -i 's|REALM|'$REALM'|g' install/etc/open5gs/pcrf.yaml
|
||||
sed -i 's|PCRF_IP|'$IP_ADDR'|g' install/etc/open5gs/pcrf.yaml
|
||||
sed -i 's|PGW_IP|'$PGW_IP'|g' install/etc/open5gs/pcrf.yaml
|
||||
sed -i 's|EPC_DOMAIN|'$EPC_DOMAIN'|g' install/etc/open5gs/pcrf.yaml
|
||||
sed -i 's|IMS_DOMAIN|'$IMS_DOMAIN'|g' install/etc/open5gs/pcrf.yaml
|
||||
sed -i 's|PCSCF_IP|'$PCSCF_IP'|g' install/etc/open5gs/pcrf.yaml
|
||||
|
Reference in New Issue
Block a user