From c3afa7d5d0a551b29f174392dcf3a1a90f0f34b0 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 18 Aug 2020 12:35:29 +0200 Subject: [PATCH] [nftables] add templating support into our type --- manifest | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifest b/manifest index 26b7d1a..7b27f0a 100644 --- a/manifest +++ b/manifest @@ -22,8 +22,16 @@ else fi +MONITORING_HOSTS="emonitor1.place5.ungleich.ch, emonitor1.place6.ungleich.ch, server1.place4.ungleich.ch, monitoring-v3.ungleich.ch" + +mkdir "$__object/files" +srctmp="$__object/files/nftables.nft" + +sed "s/MONITORING_HOSTS/$MONITORING_HOSTS/" "${srcfile}" > "$srctmp" + __package nftables -__file ${conf} --source "$srcfile" --mode 0644 + +__file ${conf} --source "$srctmp" --mode 0644 case $os in # Alpine actually has an init script, as opposed to everyone else