mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-25 21:02:04 +00:00
Compare commits
7 Commits
bfb559aefd
...
e5f14c352d
| Author | SHA1 | Date | |
|---|---|---|---|
| e5f14c352d | |||
| cb87043cf2 | |||
| 2420b4f7a2 | |||
| 56603163fb | |||
| 0138c278ba | |||
| 282a7b9b4c | |||
| ad819c3e82 |
32
.pct-helpers
32
.pct-helpers
@ -17,10 +17,10 @@ ECHO_PREFIX="### "
|
|||||||
@(){
|
@(){
|
||||||
if [ -z $DRY_RUN ] ; then
|
if [ -z $DRY_RUN ] ; then
|
||||||
! [ $QUIET ] \
|
! [ $QUIET ] \
|
||||||
&& echo "${ECHO_PREFIX}$@"
|
&& echo -e "${ECHO_PREFIX}$@"
|
||||||
"$@"
|
"$@"
|
||||||
else
|
else
|
||||||
echo $@
|
echo -e $@
|
||||||
fi
|
fi
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
@ -660,19 +660,35 @@ pctUpdateTurnkey(){
|
|||||||
pctSet(){
|
pctSet(){
|
||||||
[ "$2" ] \
|
[ "$2" ] \
|
||||||
&& @ pct set $1 \
|
&& @ pct set $1 \
|
||||||
${2} \
|
${2}
|
||||||
[ "$3" ] \
|
[ "$3" ] \
|
||||||
&& @ pct reboot $1
|
&& @ pct reboot $1
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# pctSetNotes ID
|
# pctSetNotes ID [DESCRIPTION]
|
||||||
#
|
#
|
||||||
# XXX BUG: this deos not work yet...
|
|
||||||
pctSetNotes(){
|
pctSetNotes(){
|
||||||
[ "$DESCRIPTION" ] \
|
# XXX for some reason this complains quote alot...
|
||||||
&& @ pct set $1 \
|
#[ "$DESCRIPTION" ] \
|
||||||
"${DESCRIPTION:+--description \""${DESCRIPTION}"\"}"
|
# && @ pct set $1 \
|
||||||
|
# "${DESCRIPTION:+--description \""${DESCRIPTION}"\"}"
|
||||||
|
local ID=$1
|
||||||
|
local NOTES="$(\
|
||||||
|
echo -e "${2:-${DESCRIPTION}}" \
|
||||||
|
| sed -e 's/^/#/')"
|
||||||
|
local CONF="$(cat "${CT_DIR}/${ID}.conf")"
|
||||||
|
local TEXT="\
|
||||||
|
"${NOTES}"
|
||||||
|
"${CONF}"
|
||||||
|
"
|
||||||
|
if [ "$DRY_RUN" ] ; then
|
||||||
|
echo "--- ${CT_DIR}/${ID}.conf ---"
|
||||||
|
echo -e "${TEXT}"
|
||||||
|
echo "--- ${CT_DIR}/${ID}.conf ---"
|
||||||
|
else
|
||||||
|
echo -e "${TEXT}" > "${CT_DIR}/${ID}.conf"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
Makefile
4
Makefile
@ -84,11 +84,11 @@ gate: gate-traefik
|
|||||||
|
|
||||||
|
|
||||||
.PHONY: core
|
.PHONY: core
|
||||||
core: config $CORE_CTs)
|
core: config $(CORE_CTs)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: minimal
|
.PHONY: minimal
|
||||||
minimal: core $(BASE_CTs)
|
minimal: core $(MINIMAL_CTs)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: dev
|
.PHONY: dev
|
||||||
|
|||||||
12
gate-traefik/NOTES.md
Normal file
12
gate-traefik/NOTES.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Gateway
|
||||||
|
|
||||||
|
- NAT/Firewall (iptables)
|
||||||
|
- Reverse-Proxy (traefik)
|
||||||
|
|
||||||
|
WAN: `${WAN_IPn}`
|
||||||
|
LAN: `${GATE_LAN_IPn}`
|
||||||
|
|
||||||
|
**Dashboard**:
|
||||||
|
- http://${CTHOSTNAME}.srv:8080/
|
||||||
|
- http://${GATE_LAN_IPn}:8080/
|
||||||
|
|
||||||
5
gitea/NOTES.md
Normal file
5
gitea/NOTES.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Gitea
|
||||||
|
|
||||||
|
https://${CTHOSTNAME}.srv
|
||||||
|
|
||||||
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
# Nextcloud
|
# Nextcloud
|
||||||
|
|
||||||
Hostname: `${CTHOSTNAME}`
|
https://${CTHOSTNAME}.srv
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
5
ns/NOTES.md
Normal file
5
ns/NOTES.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# DHCP / DNS
|
||||||
|
|
||||||
|
admin: `${ADMIN_IPn}`
|
||||||
|
lan: `${LAN_IPn}`
|
||||||
|
|
||||||
9
ssh/NOTES.md
Normal file
9
ssh/NOTES.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# SSH (admin)
|
||||||
|
|
||||||
|
SSH landing into the network
|
||||||
|
|
||||||
|
${HOSTNAME}
|
||||||
|
${CTHOSTNAME}.srv
|
||||||
|
${WAN_SSH_IPn}
|
||||||
|
${LAN_IP} (DHCP)
|
||||||
|
|
||||||
5
syncthing/NOTES.md
Normal file
5
syncthing/NOTES.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Syncthing
|
||||||
|
|
||||||
|
https://${CTHOSTNAME}.srv
|
||||||
|
|
||||||
|
|
||||||
3
wireguard/NOTES.md
Normal file
3
wireguard/NOTES.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# WireGuard
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user