From 25076c2acb53b0b0f3eca4c51067f2af2760390b Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 11 Oct 2026 00:15:30 +0000 Subject: [PATCH] Upload files to "templates" --- templates/home_page.html | 75 ++++++++++++++++++++++++++++++++++ templates/main-page-paste.html | 4 ++ templates/metrics_page.html | 45 ++++++++++++++++++++ templates/root.ini | 2 + templates/user.ini | 8 ++++ 5 files changed, 134 insertions(+) create mode 100644 templates/home_page.html create mode 100644 templates/main-page-paste.html create mode 100644 templates/metrics_page.html create mode 100644 templates/root.ini create mode 100644 templates/user.ini diff --git a/templates/home_page.html b/templates/home_page.html new file mode 100644 index 0000000..1584c87 --- /dev/null +++ b/templates/home_page.html @@ -0,0 +1,75 @@ + + + + Porygon + + + + + + + +

Hypervisors

+ +
+ + hypervisor +
+ +

On-Prem

+ +
+ + realserver +
+ +

Cloud

+ +
+ + vps +
+ + + + + diff --git a/templates/main-page-paste.html b/templates/main-page-paste.html new file mode 100644 index 0000000..7def9c3 --- /dev/null +++ b/templates/main-page-paste.html @@ -0,0 +1,4 @@ +
+ + $HOSTNAME +
diff --git a/templates/metrics_page.html b/templates/metrics_page.html new file mode 100644 index 0000000..406d571 --- /dev/null +++ b/templates/metrics_page.html @@ -0,0 +1,45 @@ + + + + + + + +Server Stats +

Loading...

+ +

Uptime: -

+

CPU usage: -%

+

CPU count: -

+

RAM usage: -%

+

RAM total: - GB

+

Swap usage: -%

+

Swap total: - GB

+

Disk total: - GB

+

Disk usage: -%

+

Last updated: -

+ + + + diff --git a/templates/root.ini b/templates/root.ini new file mode 100644 index 0000000..128cee6 --- /dev/null +++ b/templates/root.ini @@ -0,0 +1,2 @@ +[server] +server ansible_host="$IP" diff --git a/templates/user.ini b/templates/user.ini new file mode 100644 index 0000000..2b85808 --- /dev/null +++ b/templates/user.ini @@ -0,0 +1,8 @@ +[servers] +server ansible_host="$IP" + +[servers:vars] +ansible_user="$USER" +ansible_become=true +ansible_become_method=sudo +ansible_become_user=root