summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoinstall/gfs1.cfg7
-rw-r--r--autoinstall/gfs2.cfg7
-rw-r--r--autoinstall/gfs3.cfg7
-rw-r--r--autoinstall/gfs4.cfg7
-rw-r--r--autoinstall/gfs5.cfg7
-rw-r--r--autoinstall/gfs6.cfg7
6 files changed, 42 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
diff --git a/autoinstall/gfs2.cfg b/autoinstall/gfs2.cfg
index 767accd..3e79b66 100644
--- a/autoinstall/gfs2.cfg
+++ b/autoinstall/gfs2.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
diff --git a/autoinstall/gfs3.cfg b/autoinstall/gfs3.cfg
index 03aa106..ccce0f5 100644
--- a/autoinstall/gfs3.cfg
+++ b/autoinstall/gfs3.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
diff --git a/autoinstall/gfs4.cfg b/autoinstall/gfs4.cfg
index eb384c6..d2f1117 100644
--- a/autoinstall/gfs4.cfg
+++ b/autoinstall/gfs4.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
diff --git a/autoinstall/gfs5.cfg b/autoinstall/gfs5.cfg
index bd63304..412c322 100644
--- a/autoinstall/gfs5.cfg
+++ b/autoinstall/gfs5.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
diff --git a/autoinstall/gfs6.cfg b/autoinstall/gfs6.cfg
index 59b3efa..ac55762 100644
--- a/autoinstall/gfs6.cfg
+++ b/autoinstall/gfs6.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