Compare commits

..

6 Commits

Author SHA1 Message Date
046abf01f4 cleanup + better defaults...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-17 12:32:12 +03:00
a2bc69ba4f bootstrapping host...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-17 12:19:42 +03:00
ec250a5e39 added bootstrap bridges...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-17 12:16:14 +03:00
f9264a7901 merge...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-17 12:08:08 +03:00
3df2f47928 added bootstrap /usr/bin/vim...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-17 12:06:41 +03:00
1ba72f247f added vim...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-16 11:49:45 +03:00
6 changed files with 54 additions and 29 deletions

View File

@ -10,6 +10,10 @@ 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...

View 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...
# keep this to the minimum, at this point...
apt install \
git make wget
git make wget vim
git clone $PROXMOX_UTILS
@ -19,4 +19,5 @@ cd proxmox-utils
make bootstrap
# vim:set ts=4 sw=4 nowrap :

View File

@ -28,9 +28,12 @@
# 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

View File

@ -0,0 +1,17 @@
# 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

View File

@ -19,7 +19,6 @@ need ifreload
readConfig
DFL_WAN_PORT=${DFL_WAN_PORT:-enp5s0}
DFL_ADMIN_PORT=${DFL_ADMIN_PORT:-enp2s0}
@ -36,6 +35,7 @@ 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 \