diff options
author | heqnx <root@heqnx.com> | 2025-06-27 16:46:29 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-06-27 16:46:29 +0300 |
commit | ee794c22887a93d41ccc44009b66d567712bf0a7 (patch) | |
tree | 5c82298dc7ba5e869f1f2741137f16b80f0e2996 /templates | |
parent | 90a7b5ff6c387600c7a2e5732e33b36cff07deea (diff) | |
download | ansible-pve-host-ee794c22887a93d41ccc44009b66d567712bf0a7.tar.gz ansible-pve-host-ee794c22887a93d41ccc44009b66d567712bf0a7.zip |
added custom /etc/motd based on pvebanner, instead of /etc/issue
Diffstat (limited to 'templates')
-rw-r--r-- | templates/pvebanner.bash | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/pvebanner.bash b/templates/pvebanner.bash new file mode 100644 index 0000000..7f79b6d --- /dev/null +++ b/templates/pvebanner.bash @@ -0,0 +1,27 @@ +#!/bin/bash +set -e + +LISTEN_IP=$(grep '^LISTEN_IP=' /etc/default/pveproxy | cut -d'"' -f2) +NAT_SUBNET={{ nat_subnet }} +NAT_SUBNET_PREFIX={{ nat_subnet_prefix }} +NAT_BRIDGE_IP={{ nat_bridge_ip }} +WG_SUBNET={{ wg_subnet }} +WG_PORT={{ wg_port }} + +> /etc/issue + +cat > /etc/motd << EOF +Welcome to the Proxmox Virtual Environment. Please use your web browser to +configure this server, only accessible via WireGuard: + + https://${LISTEN_IP}:8006 + +Network configuration: + + - VM/CT subnet ${NAT_SUBNET} + - dnsmasq for vmbr1 ${NAT_SUBNET_PREFIX}.100 - ${NAT_SUBNET_PREFIX}.200, 12h + - Bridge IP ${NAT_BRIDGE_IP} + - WireGuard subnet ${WG_SUBNET} + - Wireguard port ${WG_PORT} + +EOF |