From 77c172b823b64ebface655681ab0749b9d2f7081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Fri, 13 Apr 2018 16:30:31 -0700 Subject: First public commit --- web/templates/html/error.html | 5 +++ web/templates/html/events.html | 15 +++++++++ web/templates/html/footer.html | 13 ++++++++ web/templates/html/header.html | 46 +++++++++++++++++++++++++++ web/templates/html/index.html | 67 ++++++++++++++++++++++++++++++++++++++++ web/templates/html/mappings.html | 40 ++++++++++++++++++++++++ 6 files changed, 186 insertions(+) create mode 100644 web/templates/html/error.html create mode 100644 web/templates/html/events.html create mode 100644 web/templates/html/footer.html create mode 100644 web/templates/html/header.html create mode 100644 web/templates/html/index.html create mode 100644 web/templates/html/mappings.html (limited to 'web/templates/html') diff --git a/web/templates/html/error.html b/web/templates/html/error.html new file mode 100644 index 0000000..17e3687 --- /dev/null +++ b/web/templates/html/error.html @@ -0,0 +1,5 @@ +$def with (errmsg) + +
+

$errmsg

+
diff --git a/web/templates/html/events.html b/web/templates/html/events.html new file mode 100644 index 0000000..4a0a825 --- /dev/null +++ b/web/templates/html/events.html @@ -0,0 +1,15 @@ +{{ define "events" }} + +
+
+ +
+ Event History +
+ +
+
+ +
+
+{{ end }} diff --git a/web/templates/html/footer.html b/web/templates/html/footer.html new file mode 100644 index 0000000..d2d3889 --- /dev/null +++ b/web/templates/html/footer.html @@ -0,0 +1,13 @@ +{{ define "footer" }} + + + + + + + +{{ end }} diff --git a/web/templates/html/header.html b/web/templates/html/header.html new file mode 100644 index 0000000..b02e4a2 --- /dev/null +++ b/web/templates/html/header.html @@ -0,0 +1,46 @@ +{{ define "header" }} + + + + + shoelaces - painless server bootstrapping + + + + + + + + + + + + + +
+ +
+ +
+
+ +{{ end }} diff --git a/web/templates/html/index.html b/web/templates/html/index.html new file mode 100644 index 0000000..4f09ba9 --- /dev/null +++ b/web/templates/html/index.html @@ -0,0 +1,67 @@ +{{ define "index" }} + +
+ +
+
+
+
+

Waiting for MACs...

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Shoelaces is waiting for a server to boot. Using iPXE, your server should reach the following endpoint:
http://{{ .BaseURL }}/poll/1/<MAC>

+

You can automate this process by setting up a DHCP server.

+
+
+
+
+
+
+ +
+
+ + +
+
+ +
+
+ +
+ +
+
+ +{{ end }} diff --git a/web/templates/html/mappings.html b/web/templates/html/mappings.html new file mode 100644 index 0000000..dd7d8a5 --- /dev/null +++ b/web/templates/html/mappings.html @@ -0,0 +1,40 @@ +{{ define "mappings" }} + +
+ {{ if .NetworkMaps }} +
+ +
Network Mappings
+ + + + + + + {{ range .NetworkMaps }} + + + + + {{ end }} +
SubnetIPXE script to use
{{ .Network }}{{ .Script.String }}
+
+
+ +
Hostname Mappings
+ + + + + + {{ range .HostnameMaps }} + + + + + {{ end }} +
HostnameIPXE script to use
/{{ .Hostname.String }}/{{ .Script.String }}
+
+ {{ end }} +
+{{ end }} -- cgit v1.2.3