mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-26 05:12:06 +00:00
Compare commits
No commits in common. "046abf01f4222817bce3d52aed4b189587aa3659" and "5f641957ad1232bfd7bc0fd1bf417f4c9bfab65c" have entirely different histories.
046abf01f4
...
5f641957ad
@ -10,10 +10,6 @@ CT_DIR=${CT_DIR:=/etc/pve/lxc/}
|
||||
# XXX
|
||||
|
||||
|
||||
EDITOR=${EDITOR:-vim}
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# XXX this is quite generic, might be a good idea to move this to a
|
||||
# seporate lib/file...
|
||||
|
||||
@ -8,9 +8,9 @@ PROXMOX_UTILS=${PROXMOX_UTILS:-https://github.com/flynx/proxmox-utils.git}
|
||||
apt update
|
||||
apt upgrade
|
||||
|
||||
# keep this to the minimum, at this point...
|
||||
# keep this to the minimum...
|
||||
apt install \
|
||||
git make wget vim
|
||||
git make wget
|
||||
|
||||
git clone $PROXMOX_UTILS
|
||||
|
||||
@ -19,5 +19,4 @@ cd proxmox-utils
|
||||
make bootstrap
|
||||
|
||||
|
||||
|
||||
# vim:set ts=4 sw=4 nowrap :
|
||||
|
||||
@ -28,12 +28,9 @@
|
||||
# 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.
|
||||
#
|
||||
ADMIN_BRIDGE=vmbr0
|
||||
WAN_BRIDGE=
|
||||
LAN_BRIDGE=
|
||||
ADMIN_BRIDGE=
|
||||
|
||||
|
||||
# NOTE: it is simpler to statically assign these than to configure dhcp
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
|
||||
# NOTE: this assumes the ADMIN bridge to exist (proxmox default) and to be vmbr0...
|
||||
|
||||
auto vmbr${LAN_BRIDGE}
|
||||
iface vmbr${LAN_BRIDGE} inet manual
|
||||
bridge-ports none
|
||||
bridge-stp off
|
||||
bridge-fd 0
|
||||
#LAN
|
||||
|
||||
auto vmbr${WAN_BRIDGE}
|
||||
iface vmbr${WAN_BRIDGE} inet manual
|
||||
bridge-ports ${WAN_PORT}
|
||||
bridge-stp off
|
||||
bridge-fd 0
|
||||
#WAN
|
||||
|
||||
@ -19,6 +19,7 @@ need ifreload
|
||||
|
||||
readConfig
|
||||
|
||||
|
||||
DFL_WAN_PORT=${DFL_WAN_PORT:-enp5s0}
|
||||
DFL_ADMIN_PORT=${DFL_ADMIN_PORT:-enp2s0}
|
||||
|
||||
@ -35,7 +36,6 @@ SOFTWARE=(
|
||||
tmux
|
||||
)
|
||||
|
||||
BRIDGES_TPL=bootstrap-bridges.tpl
|
||||
|
||||
# XXX
|
||||
#readVars
|
||||
@ -88,7 +88,7 @@ if xreadYes "# Create bridges?" BRIDGES ; then
|
||||
@ cp "$INTERFACES"{,.new}
|
||||
|
||||
BRIDGES="$(\
|
||||
cat "$BRIDGES_TPL" \
|
||||
cat bridges.tpl \
|
||||
| expandPCTTemplate \
|
||||
LAN_BRIDGE WAN_BRIDGE ADMIN_BRIDGE \
|
||||
WAN_PORT ADMIN_PORT \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user