From 241833b7f320e7fca84ba226f1ecbb0c963534f7 Mon Sep 17 00:00:00 2001
From: Cullum Smith <cullum@sacredheartsc.com>
Date: Fri, 12 Jul 2024 15:20:54 -0400
Subject: initial commit of hypervisor configs

---
 scripts/common/10-root-user | 7 +++++++
 scripts/common/20-dns       | 9 +++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 scripts/common/10-root-user
 create mode 100644 scripts/common/20-dns

(limited to 'scripts/common')

diff --git a/scripts/common/10-root-user b/scripts/common/10-root-user
new file mode 100644
index 0000000..9a9f5e6
--- /dev/null
+++ b/scripts/common/10-root-user
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Add root SSH pubkeys.
+set_authorized_keys root "$root_authorized_keys"
+
+# Set root password.
+set_password root "$root_password"
diff --git a/scripts/common/20-dns b/scripts/common/20-dns
new file mode 100644
index 0000000..e2d5ad6
--- /dev/null
+++ b/scripts/common/20-dns
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# For IDM servers, the resolver is localhost. In that case, we delay copying
+# this file until the IDM stack is fully up and running.
+if [ "$BOXCONF_HOSTCLASS" = idm_server ]; then
+  return
+fi
+
+install_template -m 0644 /etc/resolv.conf
-- 
cgit v1.2.3