Commit cd2fe9a7 authored by Ophélie Gagnard's avatar Ophélie Gagnard

installation/: Update the flb.conf.in template handling. Temporary fix the...

installation/: Update the flb.conf.in template handling. Temporary fix the lack of fluent-bit package.
parent 83147598
......@@ -18,11 +18,12 @@ git config --global user.name "Ophelie Gagnard"
apt -y install ${APT_SPECIFIC_PACKAGES}
rm -f ${MCA_PACKAGE_FILE}
wget ${MCA_PACKAGE_URL}
wget ${FLUENTBIT_PACKAGE_URL}
wget ${FLUENTBIT_PACKAGE_URL} || true # TMP
apt -y install ./"$MCA_PACKAGE_FILE"
apt -y install ./"$FLUENTBIT_PACKAGE_FILE"
FLB_CONF_PATH=/opt/${MCA_NAME_AND_VERSION}/etc/
CONF_REGEX="s|%WENDELIN_REFERENCE%|${WENDELIN_REFERENCE}|g"
sed ${CONF_REGEX} ${FLB_CONF_PATH}/flb.conf.in > ${FLB_CONF_PATH}/flb.conf
echo "Created ${FLB_CONF_PATH}/flb.conf from template ${FLB_CONF_PATH}/flb.conf.in"
MCA_CONF_PATH=/opt/${MCA_NAME_AND_VERSION}/etc/
#cp flb.conf.in $MCA_CONF_PATH # temporary fix
CONF_REGEX="s|%WENDELIN_URL%|${WENDELIN_URL}|g;s|%WENDELIN_PWD%|${WENDELIN_PWD}|g;s|%WENDELIN_REFERENCE%|${WENDELIN_REFERENCE}|g"
sed $CONF_REGEX $MCA_CONF_PATH/flb.conf.in > $MCA_CONF_PATH/flb.conf
echo "Created ${MCA_CONF_PATH}/flb.conf from template ${MCA_CONF_PATH}/flb.conf.in"
......@@ -15,7 +15,9 @@ TARGET_DISTRIBUTION=Debian_11
ARCH=amd64
PACKAGE_EXTENSION=.deb
# wendelin
WENDELIN_REFERENCE=douai002-capri009
WENDELIN_URL=https://softinst157546.host.vifib.net/erp5/portal_ingestion_policies/metadata_upload
WENDELIN_PWD=qxrfkwod
WENDELIN_REFERENCE=c-light-data_05
# keys and certificates
SERVER_GROUP=douai
CERT_NAME=db.cer # could be crt but does not work on every UEFI
......
......@@ -13,8 +13,9 @@ source env.sh
# building initramfs
rm -f /opt/${MCA_NAME_AND_VERSION}/etc/flb.conf.in # temporary fix
rm -f /opt/${MCA_NAME_AND_VERSION}/etc/flb.conf # temporary fix
apt-get -y remove ${MCA_PACKAGE_NAME} || true
apt-get -y remove ${FLUENTBIT_PACKAGE_NAME} || true
rm -f ${MCA_PACKAGE_FILE} ${MCA_PACKAGE_FILE}.*
rm -f ${FLUENTBIT_PACKAGE_FILE} ${FLUENTBIT_PACKAGE_FILE}.*
#rm -f ${FLUENTBIT_PACKAGE_FILE} ${FLUENTBIT_PACKAGE_FILE}.*
apt -y remove ${APT_SPECIFIC_PACKAGES} || true
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment