Compare commits

..

No commits in common. "bf48fd61b5f1f438be5b4edd26f0ac8cd501c0f5" and "046abf01f4222817bce3d52aed4b189587aa3659" have entirely different histories.

4 changed files with 9 additions and 33 deletions

View File

@ -313,7 +313,7 @@ reviewApplyChanges(){
break break
;; ;;
e|edit) e|edit)
${EDITOR} "${file}.new" ${EDITOR} "${file}"
;; ;;
s|skip) s|skip)
echo "# file saved as: ${file}.new" echo "# file saved as: ${file}.new"
@ -469,9 +469,9 @@ readCTVars(){
} }
readBridgeVars(){ readBridgeVars(){
# bridge config... # bridge config...
xread "ADMIN bridge: vmbr" ADMIN_BRIDGE
xread "WAN bridge: vmbr" WAN_BRIDGE xread "WAN bridge: vmbr" WAN_BRIDGE
xread "LAN bridge: vmbr" LAN_BRIDGE xread "LAN bridge: vmbr" LAN_BRIDGE
xread "ADMIN bridge: vmbr" ADMIN_BRIDGE
} }
readVars(){ readVars(){
xread -n "Email: " EMAIL xread -n "Email: " EMAIL

View File

@ -60,17 +60,6 @@ check: check-message $(foreach dep,$(DEPENDENCIES),require($(dep)))
FORCE: FORCE:
# XXX should thisbe an env var or an arg to make.sh???
%-bootstrap: export BOOTSTRAP=1
%-bootstrap: %
true
%-bootstrap-clean: export BOOTSTRAP_CLEAN=1
%-bootstrap-clean: %
true
%: config %/make.sh FORCE %: config %/make.sh FORCE
$*/make.sh $*/make.sh
@ -108,12 +97,7 @@ gate: gate-traefik
# ...not yet sure of the best way to do this... # ...not yet sure of the best way to do this...
# #
.PHONY: bootstrap .PHONY: bootstrap
bootstrap: host-bootstrap gate-bootstrap \ bootstrap: host
ns \
bootstrap-clean
.PHONY: bootstrap-clean
bootstrap-clean: host-bootstrap-clean

View File

@ -30,13 +30,10 @@
# #
# NOTE: on a clean Proxmox install ADMIN is pre-setup, we will use it # NOTE: on a clean Proxmox install ADMIN is pre-setup, we will use it
# for bootstrapping and reconfigure it later. # for bootstrapping and reconfigure it later.
# NOTE: to make things simpler it is recommmended to number bridges
# connecting to physical ports the same as ports and virtual
# bridges with numbers greater than X (10 in the example below)
# #
ADMIN_BRIDGE=0 ADMIN_BRIDGE=vmbr0
WAN_BRIDGE=3 WAN_BRIDGE=
LAN_BRIDGE=10 LAN_BRIDGE=
# NOTE: it is simpler to statically assign these than to configure dhcp # NOTE: it is simpler to statically assign these than to configure dhcp

View File

@ -75,18 +75,13 @@ if xreadYes "# Create bridges?" BRIDGES ; then
"vmbr\(${WAN_BRIDGE}\|${LAN_BRIDGE}\|${ADMIN_BRIDGE}\)" \ "vmbr\(${WAN_BRIDGE}\|${LAN_BRIDGE}\|${ADMIN_BRIDGE}\)" \
"$INTERFACES" ; then "$INTERFACES" ; then
conflict= conflict=
#for br in WAN_BRIDGE LAN_BRIDGE ADMIN_BRIDGE ; do for br in WAN_BRIDGE LAN_BRIDGE ADMIN_BRIDGE ; do
for br in WAN_BRIDGE LAN_BRIDGE ; do
if grep -q "vmbr${!br}" "$INTERFACES" ; then if grep -q "vmbr${!br}" "$INTERFACES" ; then
conflict="${conflict}, vmbr${!br} (${br})" conflict="${conflict}, vmbr${!br} (${br})"
fi fi
done done
if grep -q "vmbr${ADMIN_BRIDGE}" "$INTERFACES" ; then echo "ERROR: will not overwrite existing bridges: ${conflict:2}" >&2
echo "NOTE: reusing vmbr${ADMIN_BRIDGE} for ADMIN." exit 1
else
echo "ERROR: will not overwrite existing bridges: ${conflict:2}" >&2
exit 1
fi
fi fi
@ cp "$INTERFACES"{,.bak} @ cp "$INTERFACES"{,.bak}