shell render retired
grav with twig templating replaces all shell rendering
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Put together the KNEL services contract template
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Pull in contract variables
|
|
||||||
echo "Sourcing contract template variables..."
|
|
||||||
source ./KNEL-Contract-Template-Variables.env
|
|
||||||
|
|
||||||
echo "Rendering templates..."
|
|
||||||
bash RenderTemplates.sh
|
|
||||||
|
|
||||||
echo "Rendering CSV..."
|
|
||||||
bash RenderCSVToMarkdown.sh
|
|
||||||
|
|
||||||
echo "Putting it all together..."
|
|
||||||
bash RenderBook.sh
|
|
||||||
|
|
||||||
echo "Refreshing the Grav services page from the rendered catalogs..."
|
|
||||||
{
|
|
||||||
echo "---"
|
|
||||||
echo "title: 'Services'"
|
|
||||||
echo "visible: true"
|
|
||||||
echo "menu: Services"
|
|
||||||
echo "---"
|
|
||||||
cat src/services-general.md
|
|
||||||
for f in cloudron-all cloudron-lob coolify-techops-all coolify-techops-lob coolify-randd-all coolify-randd-lob kneldc-all kneldc-lob; do
|
|
||||||
echo
|
|
||||||
cat src/services-$f.md
|
|
||||||
done
|
|
||||||
} > grav/user/pages/02.services/default.md
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
|
|
||||||
export PARTY1="Known Element Enterprises LLC"
|
|
||||||
export PARTY2="TSYS Group Component"
|
|
||||||
|
|
||||||
export GOVERNING_STATE="Texas"
|
|
||||||
export VENUE_COUNTY="Collin County"
|
|
||||||
|
|
||||||
export CONTRACT_LENGTH="99 years"
|
|
||||||
export RENEWAL_TERM="one-year"
|
|
||||||
|
|
||||||
export PAYMENT_AMOUNT="100.00"
|
|
||||||
export PAYMENT_CURRENCY="USD"
|
|
||||||
export PAYMENT_FREQUENCY="month"
|
|
||||||
export INVOICE_CADENCE="monthly"
|
|
||||||
export PAYMENT_DUE_DAYS="30"
|
|
||||||
|
|
||||||
export SERVICES_SLA="95%"
|
|
||||||
export SERVICES_SLO="99%"
|
|
||||||
|
|
||||||
export SLA_PENALTY="none"
|
|
||||||
export SLO_PENALTY="none"
|
|
||||||
|
|
||||||
export ESIGN_API_URL="https://apigw.knownelement.com/contract-sign/api/v1/submissions"
|
|
||||||
export ESIGN_TEMPLATE_ID=""
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
mdbook build
|
|
||||||
@@ -1,148 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Render CSV to markdown table
|
|
||||||
|
|
||||||
COOLIFY_TO_ALL="src/services-coolify-techops-all.md"
|
|
||||||
|
|
||||||
rm $COOLIFY_TO_ALL || true
|
|
||||||
echo "# Services hosted in KNEL Coolify Techops Instance, offered to all TSYS Group components" >> $COOLIFY_TO_ALL
|
|
||||||
#Table heading
|
|
||||||
echo " " >> $COOLIFY_TO_ALL
|
|
||||||
echo "|Function|Vendor|Instance|" >> $COOLIFY_TO_ALL
|
|
||||||
echo "|---|---|---|" >> $COOLIFY_TO_ALL
|
|
||||||
#Table rows
|
|
||||||
IFS=$'\n\t'
|
|
||||||
for service in \
|
|
||||||
$(cat "service-csv/services-coolify-techops-all.csv"); do
|
|
||||||
export FUNCTION="$(echo $service|awk -F ',' '{print $1}')"
|
|
||||||
export VENDOR="$(echo $service|awk -F ',' '{print $2}')"
|
|
||||||
export INSTANCE="$(echo $service|awk -F ',' '{print $3}')"
|
|
||||||
echo "|$FUNCTION|$VENDOR|$INSTANCE|" >> $COOLIFY_TO_ALL
|
|
||||||
done
|
|
||||||
|
|
||||||
COOLIFY_TO_LOB="src/services-coolify-techops-lob.md"
|
|
||||||
|
|
||||||
rm $COOLIFY_TO_LOB || true
|
|
||||||
echo "# Services hosted in KNEL Coolify Techops Instance, offered to certain TSYS Group components under bespoke arrangement" >> $COOLIFY_TO_LOB
|
|
||||||
#Table heading
|
|
||||||
echo " " >> $COOLIFY_TO_LOB
|
|
||||||
echo "|Function|Vendor|Instance|" >> $COOLIFY_TO_LOB
|
|
||||||
echo "|---|---|---|" >> $COOLIFY_TO_LOB
|
|
||||||
#Table rows
|
|
||||||
IFS=$'\n\t'
|
|
||||||
for service in \
|
|
||||||
$(cat "service-csv/services-coolify-techops-lob.csv"); do
|
|
||||||
export FUNCTION="$(echo $service|awk -F ',' '{print $1}')"
|
|
||||||
export VENDOR="$(echo $service|awk -F ',' '{print $2}')"
|
|
||||||
export INSTANCE="$(echo $service|awk -F ',' '{print $3}')"
|
|
||||||
echo "|$FUNCTION|$VENDOR|$INSTANCE|" >> $COOLIFY_TO_LOB
|
|
||||||
done
|
|
||||||
|
|
||||||
COOLIFY_RD_ALL="src/services-coolify-randd-all.md"
|
|
||||||
|
|
||||||
rm $COOLIFY_RD_ALL || true
|
|
||||||
echo "# Services hosted in KNEL Coolify R&D Instance, offered to all TSYS Group components" >> $COOLIFY_RD_ALL
|
|
||||||
#Table heading
|
|
||||||
echo " " >> $COOLIFY_RD_ALL
|
|
||||||
echo "|Function|Vendor|Instance|" >> $COOLIFY_RD_ALL
|
|
||||||
echo "|---|---|---|" >> $COOLIFY_RD_ALL
|
|
||||||
#Table rows
|
|
||||||
IFS=$'\n\t'
|
|
||||||
for service in \
|
|
||||||
$(cat "service-csv/services-coolify-randd-all.csv"); do
|
|
||||||
export FUNCTION="$(echo $service|awk -F ',' '{print $1}')"
|
|
||||||
export VENDOR="$(echo $service|awk -F ',' '{print $2}')"
|
|
||||||
export INSTANCE="$(echo $service|awk -F ',' '{print $3}')"
|
|
||||||
echo "|$FUNCTION|$VENDOR|$INSTANCE|" >> $COOLIFY_RD_ALL
|
|
||||||
done
|
|
||||||
|
|
||||||
COOLIFY_RD_LOB="src/services-coolify-randd-lob.md"
|
|
||||||
|
|
||||||
rm $COOLIFY_RD_LOB || true
|
|
||||||
echo "# Services hosted in KNEL Coolify R&D Instance, offered to certain TSYS Group components under bespoke arrangement" >> $COOLIFY_RD_LOB
|
|
||||||
#Table heading
|
|
||||||
echo " " >> $COOLIFY_RD_LOB
|
|
||||||
echo "|Function|Vendor|Instance|" >> $COOLIFY_RD_LOB
|
|
||||||
echo "|---|---|---|" >> $COOLIFY_RD_LOB
|
|
||||||
#Table rows
|
|
||||||
IFS=$'\n\t'
|
|
||||||
for service in \
|
|
||||||
$(cat "service-csv/services-coolify-randd-lob.csv"); do
|
|
||||||
export FUNCTION="$(echo $service|awk -F ',' '{print $1}')"
|
|
||||||
export VENDOR="$(echo $service|awk -F ',' '{print $2}')"
|
|
||||||
export INSTANCE="$(echo $service|awk -F ',' '{print $3}')"
|
|
||||||
echo "|$FUNCTION|$VENDOR|$INSTANCE|" >> $COOLIFY_RD_LOB
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
KNELDC_ALL="src/services-kneldc-all.md"
|
|
||||||
|
|
||||||
rm $KNELDC_ALL || true
|
|
||||||
echo "# Services hosted in KNEL Datacenter, offered to all TSYS Group components" >> $KNELDC_ALL
|
|
||||||
#Table heading
|
|
||||||
echo " " >> $KNELDC_ALL
|
|
||||||
echo "|Function|Vendor|Instance|" >> $KNELDC_ALL
|
|
||||||
echo "|---|---|---|" >> $KNELDC_ALL
|
|
||||||
#Table rows
|
|
||||||
IFS=$'\n\t'
|
|
||||||
for service in \
|
|
||||||
$(cat "service-csv/services-kneldc-all.csv"); do
|
|
||||||
export FUNCTION="$(echo $service|awk -F ',' '{print $1}')"
|
|
||||||
export VENDOR="$(echo $service|awk -F ',' '{print $2}')"
|
|
||||||
export INSTANCE="$(echo $service|awk -F ',' '{print $3}')"
|
|
||||||
echo "|$FUNCTION|$VENDOR|$INSTANCE|" >> $KNELDC_ALL
|
|
||||||
done
|
|
||||||
|
|
||||||
KNELDC_LOB="src/services-kneldc-lob.md"
|
|
||||||
|
|
||||||
rm $KNELDC_LOB || true
|
|
||||||
echo "# Services hosted in KNEL Datacenter, offered to certain TSYS Group components under bespoke arrangement" >> $KNELDC_LOB
|
|
||||||
#Table heading
|
|
||||||
echo " " >> $KNELDC_LOB
|
|
||||||
echo "|Function|Vendor|Instance|" >> $KNELDC_LOB
|
|
||||||
echo "|---|---|---|" >> $KNELDC_LOB
|
|
||||||
#Table rows
|
|
||||||
IFS=$'\n\t'
|
|
||||||
for service in \
|
|
||||||
$(cat "service-csv/services-kneldc-lob.csv"); do
|
|
||||||
export FUNCTION="$(echo $service|awk -F ',' '{print $1}')"
|
|
||||||
export VENDOR="$(echo $service|awk -F ',' '{print $2}')"
|
|
||||||
export INSTANCE="$(echo $service|awk -F ',' '{print $3}')"
|
|
||||||
echo "|$FUNCTION|$VENDOR|$INSTANCE|" >> $KNELDC_LOB
|
|
||||||
done
|
|
||||||
|
|
||||||
CLOUDRON_ALL="src/services-cloudron-all.md"
|
|
||||||
|
|
||||||
rm $CLOUDRON_ALL || true
|
|
||||||
echo "# Services hosted in KNEL Cloudron, offered to all TSYS Group components" >> $CLOUDRON_ALL
|
|
||||||
#Table heading
|
|
||||||
echo " " >> $CLOUDRON_ALL
|
|
||||||
echo "|Function|Vendor|Instance|" >> $CLOUDRON_ALL
|
|
||||||
echo "|---|---|---|" >> $CLOUDRON_ALL
|
|
||||||
#Table rows
|
|
||||||
IFS=$'\n\t'
|
|
||||||
for service in \
|
|
||||||
$(cat "service-csv/services-cloudron-all.csv"); do
|
|
||||||
export FUNCTION="$(echo $service|awk -F ',' '{print $1}')"
|
|
||||||
export VENDOR="$(echo $service|awk -F ',' '{print $2}')"
|
|
||||||
export INSTANCE="$(echo $service|awk -F ',' '{print $3}')"
|
|
||||||
echo "|$FUNCTION|$VENDOR|$INSTANCE|" >> $CLOUDRON_ALL
|
|
||||||
done
|
|
||||||
|
|
||||||
CLOUDRON_LOB="src/services-cloudron-lob.md"
|
|
||||||
|
|
||||||
rm $CLOUDRON_LOB || true
|
|
||||||
echo "# Services hosted in KNEL Cloudron, offered to certain TSYS Group components under bespoke arrangement" >> $CLOUDRON_LOB
|
|
||||||
#Table heading
|
|
||||||
echo " " >> $CLOUDRON_LOB
|
|
||||||
echo "|Function|Vendor|Instance|" >> $CLOUDRON_LOB
|
|
||||||
echo "|---|---|---|" >> $CLOUDRON_LOB
|
|
||||||
#Table rows
|
|
||||||
IFS=$'\n\t'
|
|
||||||
for service in \
|
|
||||||
$(cat "service-csv/services-cloudron-lob.csv"); do
|
|
||||||
export FUNCTION="$(echo $service|awk -F ',' '{print $1}')"
|
|
||||||
export VENDOR="$(echo $service|awk -F ',' '{print $2}')"
|
|
||||||
export INSTANCE="$(echo $service|awk -F ',' '{print $3}')"
|
|
||||||
echo "|$FUNCTION|$VENDOR|$INSTANCE|" >> $CLOUDRON_LOB
|
|
||||||
done
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
source ./KNEL-Contract-Template-Variables.env
|
|
||||||
|
|
||||||
MUSTACHE_PATH="vendor/git.knownelement.com/ExternalVendorCode/mo/mo"
|
|
||||||
|
|
||||||
for input_file in $(ls -1 contract-inputs/*.md);
|
|
||||||
do
|
|
||||||
OUTPUT_FILE_NAME="$(echo $input_file | awk -F '/' '{print $2}')"
|
|
||||||
bash $MUSTACHE_PATH $input_file > src/$OUTPUT_FILE_NAME
|
|
||||||
done
|
|
||||||
Reference in New Issue
Block a user