From c728164f973aebb80c24187010d8b23c67a77f20 Mon Sep 17 00:00:00 2001 From: sbennell Date: Fri, 10 Jan 2020 16:47:46 +1100 Subject: [PATCH] Add files via upload --- scripts/pvebanner | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 scripts/pvebanner diff --git a/scripts/pvebanner b/scripts/pvebanner new file mode 100644 index 0000000..a8b84fc --- /dev/null +++ b/scripts/pvebanner @@ -0,0 +1,48 @@ +#!/usr/bin/perl + +use strict; +use PVE::INotify; +use PVE::Cluster; + +my $nodename = PVE::INotify::nodename(); +my $localip = PVE::Cluster::remote_node_ip($nodename, 1); + +my $xline = '-' x 78; + +my $banner = ''; + +if ($localip) { + $banner .= <<__EOBANNER; + +$xline +888888b. 888 888 8888888 88888888888 +888 "88b 888 888 888 888 +888 .88P 888 888 888 888 +8888888K. .d88b. 88888b. 88888b. .d88b. 888 888 888 888 +888 "Y88b d8P Y8b 888 "88b 888 "88b d8P Y8b 888 888 888 888 +888 888 88888888 888 888 888 888 88888888 888 888 888 888 +888 d88P Y8b. 888 888 888 888 Y8b. 888 888 888 888 +8888888P" "Y8888 888 888 888 888 "Y8888 888 888 8888888 888 + www.bennellit.com.au +$xline +Always Classic Cars +SVR-ACC-VH01 + +Welcome to the Proxmox Virtual Environment. Please use your web browser to +configure this server - connect to: + + https://${localip}:8006/ + +$xline + +__EOBANNER + +} + +open(ISSUE, ">/etc/issue"); + +print ISSUE $banner; + +close(ISSUE); + +exit (0);