Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-09-21 22:57:42 +03:00
parent 36b68e0dae
commit 978da5a443
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@
# - backup
# - pull config
#
#
#----------------------------------------------------------------------
EDITOR ?= vim
@ -95,7 +96,7 @@ gate: gate-traefik
# - ns
#
.PHONY: bootstrap
bootstrap:
bootstrap: host

View File

@ -42,6 +42,7 @@ readVars
#----------------------------------------------------------------------
# XXX add interface bootstrap...
INTERFACES=(
"name=wan,bridge=vmbr${WAN_BRIDGE},firewall=1${WAN_GATE:+,gw=${WAN_GATE}}${WAN_IP:+,ip=${WAN_IP}},type=veth"
"name=admin,bridge=vmbr${ADMIN_BRIDGE},firewall=1${ADMIN_IP:+,ip=${ADMIN_IP}},type=veth"
@ -62,6 +63,7 @@ buildAssets
echo "# Creating CT..."
pctCreateAlpine $ID "$PASS"
# XXX this requires a bootsrapped interface...
echo "# Installing dependencies..."
@ lxc-attach $ID apk add bash bridge iptables traefik logrotate