mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 10:40:07 +00:00
separated bootstrap bridge...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
73b4a27b9d
commit
c659f54563
5
Makefile
5
Makefile
@ -110,11 +110,14 @@ gate: gate-traefik
|
||||
.PHONY: bootstrap
|
||||
bootstrap: host-bootstrap gate-bootstrap \
|
||||
ns \
|
||||
ssh \
|
||||
wireguard \
|
||||
bootstrap-clean
|
||||
|
||||
|
||||
# NOTE: host-bootstrap-clean will drop all connections to the server...
|
||||
.PHONY: bootstrap-clean
|
||||
bootstrap-clean: gate-bootstrap-clean host-bootstrap-clean
|
||||
bootstrap-clean: gate-bootstrap-clean #host-bootstrap-clean
|
||||
|
||||
|
||||
|
||||
|
||||
@ -23,19 +23,20 @@
|
||||
# These are set to the bridge number (the number in 'vmbr#') used for
|
||||
# a specific network.
|
||||
#
|
||||
# Example:
|
||||
# WAN_BRIDGE=0
|
||||
# LAN_BRIDGE=1
|
||||
# ADMIN_BRIDGE=2
|
||||
#
|
||||
# NOTE: on a clean Proxmox install ADMIN is pre-setup, we will use it
|
||||
# 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
|
||||
WAN_BRIDGE=3
|
||||
# Example:
|
||||
# WAN_BRIDGE=0
|
||||
# ADMIN_BRIDGE=3
|
||||
# LAN_BRIDGE=10
|
||||
#
|
||||
BOOTSTRAP_BRIDGE=0
|
||||
ADMIN_BRIDGE=00
|
||||
WAN_BRIDGE=03
|
||||
LAN_BRIDGE=10
|
||||
|
||||
|
||||
|
||||
@ -47,10 +47,7 @@ if ! [ -z $BOOTSTRAP_CLEAN ] ; then
|
||||
xread "ID: " ID
|
||||
readBridgeVars
|
||||
|
||||
# XXX update WAN ip... (???)
|
||||
# XXX
|
||||
|
||||
echo "# Reverting gate's WAN bridge to vmbr${WAN_BRIDGE}..."
|
||||
echo "# Reverting gate's WAN bridge to: vmbr${WAN_BRIDGE}..."
|
||||
@ sed -i \
|
||||
-e 's/^\(net0.*vmbr\)'${ADMIN_BRIDGE}'/\1'${WAN_BRIDGE}'/' \
|
||||
/etc/pve/lxc/${ID}.conf
|
||||
@ -63,8 +60,7 @@ fi
|
||||
|
||||
if ! [ -z $BOOTSTRAP ] ; then
|
||||
# this will allow the bootstrapped CTs to access the network...
|
||||
WAN_BRIDGE=$ADMIN_BRIDGE
|
||||
#DFL_CTHOSTNAME=${DFL_CTHOSTNAME}-bootstrap
|
||||
WAN_BRIDGE=${ADMIN_BRIDGE}
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ iface vmbr${WAN_BRIDGE} inet manual
|
||||
auto vmbr${ADMIN_BRIDGE}
|
||||
iface vmbr${ADMIN_BRIDGE} inet static
|
||||
address ${HOST_ADMIN_IP}
|
||||
gateway ${GATE_ADMIN_IPn}
|
||||
#gateway ${GATE_ADMIN_IPn}
|
||||
bridge-ports ${ADMIN_PORT}
|
||||
bridge-stp off
|
||||
bridge-fd 0
|
||||
|
||||
@ -48,6 +48,7 @@ BRIDGES_TPL=bootstrap-bridges.tpl
|
||||
|
||||
if ! [ -z $BOOTSTRAP_CLEAN ] ; then
|
||||
# XXX switch admin interface IP and Gateway to admin net...
|
||||
# current ip -> $HOST_ADMIN_IP
|
||||
# XXX
|
||||
exit
|
||||
fi
|
||||
|
||||
@ -21,7 +21,7 @@ readConfig
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
DFL_ID=${DFL_ID:=102}
|
||||
DFL_ID=${DFL_ID:=120}
|
||||
DFL_CTHOSTNAME=${DFL_CTHOSTNAME:=ssh}
|
||||
|
||||
DFL_CORES=${DFL_CORES:=1}
|
||||
|
||||
@ -17,7 +17,7 @@ readConfig
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
DFL_ID=${DFL_ID:=1001}
|
||||
DFL_ID=${DFL_ID:=1010}
|
||||
DFL_CTHOSTNAME=${DFL_CTHOSTNAME:=syncthing}
|
||||
|
||||
DFL_CORES=${DFL_CORES:=1}
|
||||
|
||||
@ -21,7 +21,7 @@ would-like dig #qrencode
|
||||
|
||||
readConfig
|
||||
|
||||
DFL_ID=${DFL_ID:=103}
|
||||
DFL_ID=${DFL_ID:=130}
|
||||
DFL_CTHOSTNAME=${DFL_CTHOSTNAME:=wireguard}
|
||||
|
||||
DFL_CORES=${DFL_CORES:=1}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user