summaryrefslogtreecommitdiff
path: root/bootstrap/templates/hosts.j2
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2026-09-09 21:48:42 +0100
committerMatthew Fennell <matthew@fennell.dev>2026-09-09 21:50:33 +0100
commit25db56f6241ae50feb54232e25f8203c1a450c7c (patch)
tree076e0e4dfc7f14f96377fbeebe475e30bafe61e3 /bootstrap/templates/hosts.j2
parentafa36d11a380f924588d67172ecf02275461f386 (diff)
Move bootstrap sources to their own subdirectory
Since much of the setup (e.g. linter, hook, Makefile configuration) is consistent between ansible roles, instead of having a separate repo per role (as I initially planned), I'd prefer to have a single repo with all of the roles that the playbooks can then pull from. This is in preparation of adding a new munin-node role, following a similar process to bootstrap.
Diffstat (limited to 'bootstrap/templates/hosts.j2')
-rw-r--r--bootstrap/templates/hosts.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstrap/templates/hosts.j2 b/bootstrap/templates/hosts.j2
new file mode 100644
index 0000000..9ef5300
--- /dev/null
+++ b/bootstrap/templates/hosts.j2
@@ -0,0 +1,11 @@
+# SPDX-FileCopyrightText: 2025 Matthew Fennell <matthew@fennell.dev>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+127.0.1.1 {{ hostname }}
+127.0.0.1 localhost
+
+# The following lines are desirable for IPv6 capable hosts
+::1 localhost ip6-localhost ip6-loopback
+ff02::1 ip6-allnodes
+ff02::2 ip6-allrouters