summaryrefslogtreecommitdiff
path: root/autoinstall/gfs1.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'autoinstall/gfs1.cfg')
-rw-r--r--autoinstall/gfs1.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/autoinstall/gfs1.cfg b/autoinstall/gfs1.cfg
index e669f3d..a75d01e 100644
--- a/autoinstall/gfs1.cfg
+++ b/autoinstall/gfs1.cfg
@@ -31,6 +31,13 @@ vim-enhanced
# https://bugzilla.redhat.com/show_bug.cgi?id=440058
sed -i -r -e 's/^id:[0-6]:initdefault:$/id:3:initdefault:/g' /etc/inittab
+mkdir -p /root/.ssh
+cat > /root/.ssh/authorized_keys << EOF
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuYwrguPlzuOXUNV9AwtbduNy0Waq1crncyb8ijHNEng4SX/kMhqULK4Z6g0Go5vXFzkabmQqHvRPxi5jtTN+P80xsdqEznKETbyjiPnw56qLYERf1UvTUl41yMTgrB9M7/74cD1RnpjnMKU/KRUelWtv/xzpVvYoMsNBZlS64cCRXvrE2z7tZC2hdBKPU+6yeUSe1HVwklMzhAvCpPplN7riVO6hV4J1QCdLFpS8cScIYKBo7f6Xrt3aWOsmMr9OJx2CZiJkwYLotSkbf5VFMAsJhaSnO8UTNNEOZFkIU7My0+u2oyfQX2vuaaVaJix1gsNLW4q3bqvW5+XaNJuiZ kanarip@kanarip.com
+EOF
+chmod 700 /root/.ssh
+chmod 600 /root/.ssh/authorized_keys
+
cat >> /etc/hosts << EOF
192.168.122.41 gfs1.example.org gfs1
192.168.122.42 gfs2.example.org gfs2