Revision a1471122
Added by Donato Florio over 5 years ago
CartellaPerClient-Via-Clonezilla.ssh/id_rsa | ||
---|---|---|
1 |
-----BEGIN RSA PRIVATE KEY----- |
|
2 |
MIIEogIBAAKCAQEAxUgKLKJTcAakRIcHqbh4XbpdKSv+OPzVwBi0/hZ1Sa9tjaND |
|
3 |
gmyIzqTzaeRjIfGCSPqNePutvG/shcAcLG+fX+50Mqm8xLn9gMRf7ty/ojWSaTDn |
|
4 |
tdxapcHMQ6vNu5CxRrLOLgtSN8molM+XPsjzuMbX7qOmOoLulpQwqKRnarYiZKcQ |
|
5 |
lzyKSjrzdmm9g6FKvWnBlgc/3QP2r3jxs2D+beE9QooXbGmyiyG+1DEus1U2/vUA |
|
6 |
xLrF/xsZ7cCSUTWMm3zubSTyKCW0bUn33I1KnUlh7QTvHxWiVjCVUVGqOY2O8KOE |
|
7 |
rf4pDDOm75e0xlnlCoeoLKu3nPfZXS9gKWcpFwIDAQABAoIBAA2JePFBHjqUqhbt |
|
8 |
sQ/rUY8U56mYlDQy3TP2Pg0lW1z4BatvZYWAjw6m8PD2M/szSD5buvNvSaehgnhX |
|
9 |
C1fdPPFnOl/zl7lkDcoVL4QDb77gsDA5o9ytxyaSmsKV+mMBdbilMlKkgjrDwqab |
|
10 |
bARp45dtRYnhftmK/HYmqwQXa+U9hUfKMbLjumQksbpHBOd14CSCeMYsXWO6Y1Fq |
|
11 |
3bAUn5gG6hmehKFIdQCYRZ/15jG/Ci+XfmIW2LC3x+AUEmPii1k+vr6AyUkDDunD |
|
12 |
3heWlxrFj2TB/YTFysGBscsY/8fFWyE7T5vzVsmrWlpnW86foixliNQyKwOs6SSz |
|
13 |
IxQ3K6ECgYEA8ef0JSXCFwcHit7APSDyh6fzsOBwvH03Dlvs+AjRcRE4V2VFSQsu |
|
14 |
Ecv577ePmfz3WVgQe8zVCTLsX68rUeoIPnpfW24rqHPltPbU6ODzcOLuZJ1t+9cl |
|
15 |
/2q/1jlY82vEy96+Nae1RI45z5JHnpCSZ95Flku6r9wBsfbssNcMgIcCgYEA0MaB |
|
16 |
iUvwcY/gXBH0k+JTPwxuiObvg8R1sWctEn1JRB30UZixlETSTAlfW2xbGL7zBJxh |
|
17 |
IjlZpzCwQl1Tlpe9Qoc8qCidMTyvH5RbOMxQFz7JTea1Y/Pk9gQQaL9ZJ7Pugphj |
|
18 |
hkkeqvBG6z7uKRxdY43Y6cK2qxX1I7issfopBvECgYBf1T9wc/vnOX6wcjyAOww5 |
|
19 |
17x/5vpigcyM4LgJLx0iCOtkHBeNr2Mp47/5SqQWIhQvjebB1MzU3xqrcW7c/bUU |
|
20 |
Y1BhnUyoaHmo7lw8gdmPcCd3LrMCoSJJhJXJHWDy1k/ZYD3EbdMu/JVEeTPsSmPl |
|
21 |
yDWTLB8iSitVwHfWOuuWAwKBgDbyB2V69uzsUL/qedPx3LbbLrwZCzBCpDbsUJBt |
|
22 |
KLskpwhSh2neMvqP/Oiyu8bnek3cWjQHo/C8f6b3qOgZR1YbAXvANJ6gufY1tUxd |
|
23 |
eTak75XxAgwsRDX7G9Z1haFNWZhFQuw0kj2qvv9qsINhU7K/wjbDaA/e14VvNQQi |
|
24 |
MmoBAoGAOER5lSRUoDpRctB5zgWkug92MdPLbL52R2X+JI1pJ6nHNOTXtaHeNhPn |
|
25 |
zTraPMBj2i9Ivic9fP2yCYFNuZydGymbeq6w6m5/qv33WZTLXFPADxVV9Zj1VdnC |
|
26 |
BUm7u+3SNXSRRHQEZHMzJKlBzk0xKEZ5V8XAJcf3kOhzBOZsmiE= |
|
27 |
-----END RSA PRIVATE KEY----- |
CartellaPerClient-Via-Clonezilla.ssh/id_rsa.pub | ||
---|---|---|
1 |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFSAosolNwBqREhwepuHhdul0pK/44/NXAGLT+FnVJr22No0OCbIjOpPNp5GMh8YJI+o14+628b+yFwBwsb59f7nQyqbzEuf2AxF/u3L+iNZJpMOe13FqlwcxDq827kLFGss4uC1I3yaiUz5c+yPO4xtfuo6Y6gu6WlDCopGdqtiJkpxCXPIpKOvN2ab2DoUq9acGWBz/dA/avePGzYP5t4T1CihdsabKLIb7UMS6zVTb+9QDEusX/GxntwJJRNYybfO5tJPIoJbRtSffcjUqdSWHtBO8fFaJWMJVRUao5jY7wo4St/ikMM6bvl7TGWeUKh6gsq7ec99ldL2ApZykX root@g450ddd |
ListaPc.txt | ||
---|---|---|
1 |
alfredo 83:dd:1d:37:40:d6 devuan-img |
|
2 |
zorro 08:00:27:ab:5a:a2 fuss9-64bit-sept-2018-grubSec-img join |
|
3 |
bubba 83:dd:1d:37:40:d4 devuan-img |
|
4 |
mirco 83:d2:1d:37:40:d4 devuan-img |
|
5 |
pippo 83:dd:1d:37:40:e4 devuan-img |
|
6 |
tozzi e3:e7:49:44:f7:11 ProBook-Modello-2019-img |
|
7 |
g450-ugly e4:e7:49:44:f7:11 G450-Prova-img join |
authorizedKeysToAppendToRootOfFussServer | ||
---|---|---|
1 |
command="if [[ \"$SSH_ORIGINAL_COMMAND\" =~ ^scp[[:space:]]-f ]] || [[ \"$SSH_ORIGINAL_COMMAND\" =~ ^add_client_principal ]] || [[ \"$SSH_ORIGINAL_COMMAND\" =~ rm[[:space:]]/root/ ]]; then $SSH_ORIGINAL_COMMAND; else echo \"Access Denied $SSH_ORIGINAL_COMMAND\"; fi" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFSAosolNwBqREhwepuHhdul0pK/44/NXAGLT+FnVJr22No0OCbIjOpPNp5GMh8YJI+o14+628b+yFwBwsb59f7nQyqbzEuf2AxF/u3L+iNZJpMOe13FqlwcxDq827kLFGss4uC1I3yaiUz5c+yPO4xtfuo6Y6gu6WlDCopGdqtiJkpxCXPIpKOvN2ab2DoUq9acGWBz/dA/avePGzYP5t4T1CihdsabKLIb7UMS6zVTb+9QDEusX/GxntwJJRNYybfO5tJPIoJbRtSffcjUqdSWHtBO8fFaJWMJVRUao5jY7wo4St/ikMM6bvl7TGWeUKh6gsq7ec99ldL2ApZykX root@g450ddd |
authorized_keys-da-APPENDARE-a-root-del-Fuss-Server | ||
---|---|---|
1 |
command="if [[ \"$SSH_ORIGINAL_COMMAND\" =~ ^scp[[:space:]]-f ]] || [[ \"$SSH_ORIGINAL_COMMAND\" =~ ^add_client_principal ]] || [[ \"$SSH_ORIGINAL_COMMAND\" =~ rm[[:space:]]/root/ ]]; then $SSH_ORIGINAL_COMMAND; else echo \"Access Denied $SSH_ORIGINAL_COMMAND\"; fi" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFSAosolNwBqREhwepuHhdul0pK/44/NXAGLT+FnVJr22No0OCbIjOpPNp5GMh8YJI+o14+628b+yFwBwsb59f7nQyqbzEuf2AxF/u3L+iNZJpMOe13FqlwcxDq827kLFGss4uC1I3yaiUz5c+yPO4xtfuo6Y6gu6WlDCopGdqtiJkpxCXPIpKOvN2ab2DoUq9acGWBz/dA/avePGzYP5t4T1CihdsabKLIb7UMS6zVTb+9QDEusX/GxntwJJRNYybfO5tJPIoJbRtSffcjUqdSWHtBO8fFaJWMJVRUao5jY7wo4St/ikMM6bvl7TGWeUKh6gsq7ec99ldL2ApZykX root@g450ddd |
clientScripts/clientScript | ||
---|---|---|
8 | 8 |
shutdown -r now |
9 | 9 |
fi |
10 | 10 |
|
11 |
|
|
12 |
if [ -e /root/cluster ];then |
|
13 |
clusterJoin="$(cat /root/cluster)" |
|
14 |
fi |
|
15 |
|
|
16 |
|
|
11 | 17 |
if [ -e /root/join ];then |
18 |
# Following dhclient was necessary inside a virtual(box) environment. Not sure if needed anymore. In case it can be removed or commented. |
|
12 | 19 |
dhclient $myNic |
13 | 20 |
screen -d -m -S XY |
14 |
screen -S XY -X stuff "fuss-client -av && rm /root/join ; reboot\n" |
|
21 |
screen -S XY -X stuff "fuss-client -av $clusterJoin && rm /root/join ; reboot\n"
|
|
15 | 22 |
else |
16 | 23 |
rm /etc/rc.local |
17 | 24 |
rm /root/clientScript |
18 | 25 |
rm -fr /root/.ssh |
19 |
|
|
26 |
rm /root/cluster |
|
20 | 27 |
fi |
21 | 28 |
|
22 | 29 |
|
computerList.txt | ||
---|---|---|
1 |
# File containing a list of names for the automated cloning of computers |
|
2 |
# by using the mac-address as unique identifier. |
|
3 |
# |
|
4 |
# The first parameter is the computername we want to assign. |
|
5 |
# The Second parameter is the mac-address of the machine we want to put the image on. |
|
6 |
# The third parameter is the clonezilla-image we want to use for a computer. |
|
7 |
# The fourth parameter is the word "join" if we want the machine to be joined to our domain. |
|
8 |
# The fifth parameter is useful if we use clusters in our domain. If so we specify the cluster (computer group) here. |
|
9 |
# Example: |
|
10 |
# |
|
11 |
# info-pc01 08:00:27:ab:5a:a2 cloneImage-img join clustername |
|
12 |
|
default | ||
---|---|---|
1 | 1 |
# BEGIN ANSIBLE MANAGED (default) |
2 | 2 |
DEFAULT menu.c32 |
3 |
# MENU MASTER PASSWD myPassword |
|
3 | 4 |
# END ANSIBLE MANAGED (default) |
4 | 5 |
# BEGIN ANSIBLE MANAGED (clonezilla) |
5 | 6 |
timeout 300 |
6 | 7 |
label Clonezilla-unattended |
7 | 8 |
MENU LABEL Clonezilla Automatico (Ramdisk) |
9 |
# MENU PASSWD myPassword |
|
8 | 10 |
KERNEL clonezilla/live/vmlinuz |
9 |
APPEND initrd=clonezilla/live/initrd.img boot=live username=clonezilla union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts=NONE ocs_live_batch=no net.ifnames=0 nosplash noprompt keyboard-layouts=it locales=it_IT.UTF-8 ocs_prerun1="sshfs clonezilla@proxy:/srv/clonezilla /home/partimag" ocs_prerun2="screen -S XY '/home/partimag/script' " fetch=tftp://proxy/clonezilla/live/filesystem.squashfs |
|
11 |
APPEND initrd=clonezilla/live/initrd.img boot=live username=clonezilla union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts=NONE ocs_live_batch=no net.ifnames=0 nosplash noprompt keyboard-layouts=it locales=it_IT.UTF-8 ocs_prerun1="sshfs clonezilla@proxy:/srv/clonezilla /home/partimag -o IdentityFile=/home/clonezilla/.ssh/id_rsa -o StrictHostKeyChecking=no" ocs_prerun2="screen -S XY '/home/partimag/script' " fetch=tftp://proxy/clonezilla/live/filesystem.squashfs
|
|
10 | 12 |
# END ANSIBLE MANAGED (clonezilla) |
11 | 13 |
|
12 | 14 |
label Clonezilla-Manuale |
13 | 15 |
MENU LABEL Clonezilla Manuale (Ramdisk) |
16 |
# MENU PASSWD myPassword |
|
14 | 17 |
KERNEL clonezilla/live/vmlinuz |
15 | 18 |
APPEND initrd=clonezilla/live/initrd.img boot=live username=clonezilla union=overlay config components quiet noswap edd=on nomodeset nodmraid locales= keyboard-layouts=NONE ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no net.ifnames=0 nosplash noprompt keyboard-layouts=it locales=it_IT.UTF-8 ocs_repository="ssh://clonezilla@proxy/srv/clonezilla" fetch=tftp://proxy/clonezilla/live/filesystem.squashfs |
16 | 19 |
# END ANSIBLE MANAGED (clonezilla) |
installFucc.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
|
|
3 |
DATUM="$(date +%d-%b-%Y-ore-%H-%M)" |
|
4 |
|
|
5 |
# ## Set the folder of clonezilla on the fuss-server if not corresponding to the actual standard ## # |
|
6 |
|
|
7 |
clonezillaFolder="/srv/clonezilla" |
|
8 |
|
|
9 |
tftpFolder="/srv/tftp" |
|
10 |
|
|
11 |
#### |
|
12 |
|
|
13 |
|
|
14 |
# Check if this version of the "squash-file" is the same. If so do nothing. |
|
15 |
|
|
16 |
checkThisSquash="$(md5sum filesystem.squashfs | awk '{print $1}')" |
|
17 |
checkServerSquash="$(md5sum $tftpFolder/clonezilla/live/filesystem.squashfs | awk '{print $1}')" |
|
18 |
|
|
19 |
if [ "$checkThisSquash" != "$checkServerSquash" ];then |
|
20 |
mv $tftpFolder/clonezilla/live/filesystem.squashfs $tftpFolder/clonezilla/live/filesystem.squashfs.BKP-$DATUM |
|
21 |
cp filesystem.squashfs $tftpFolder/clonezilla/live/ |
|
22 |
fi |
|
23 |
|
|
24 |
# ###### |
|
25 |
|
|
26 |
|
|
27 |
if [ -e /root/.ssh/authorized_keys ];then |
|
28 |
cp /root/.ssh/authorized_keys /root/.ssh/authorized_keys.BKP-$DATUM |
|
29 |
fi |
|
30 |
|
|
31 |
grep root@g450ddd /root/.ssh/authorized_keys >/dev/null |
|
32 |
|
|
33 |
if [ $? -eq 0 ]; then |
|
34 |
echo "authorized keys already there" |
|
35 |
else |
|
36 |
cat authorizedKeysToAppendToRootOfFussServer >> /root/.ssh/authorized_keys |
|
37 |
fi |
|
38 |
|
|
39 |
cp -r sshKeysForClonezillaClient $clonezillaFolder/.ssh |
|
40 |
|
|
41 |
chown -R clonezilla. $clonezillaFolder/.ssh |
|
42 |
|
|
43 |
chmod 400 $clonezillaFolder/.ssh/id_rsa* |
|
44 |
|
|
45 |
cp -r clientScripts $clonezillaFolder |
|
46 |
|
|
47 |
chmod -R 770 $clonezillaFolder/clientScripts |
|
48 |
|
|
49 |
|
|
50 |
if [ -e $tftpFolder/pxelinux.cfg/default ];then |
|
51 |
mv $tftpFolder/pxelinux.cfg/default $tftpFolder/pxelinux.cfg/default.BKP-$DATUM |
|
52 |
fi |
|
53 |
|
|
54 |
cp default $tftpFolder/pxelinux.cfg |
|
55 |
|
|
56 |
if [ -e $clonezillaFolder/computerList.txt ];then |
|
57 |
mv $clonezillaFolder/computerList.txt $clonezillaFolder/computerList.txt.BKP-$DATUM |
|
58 |
fi |
|
59 |
|
|
60 |
cp computerList.txt $clonezillaFolder |
|
61 |
|
|
62 |
if [ -e $clonezillaFolder/script ];then |
|
63 |
mv $clonezillaFolder/script $clonezillaFolder/script.BKP-$DATUM |
|
64 |
fi |
|
65 |
|
|
66 |
cp script $clonezillaFolder |
|
67 |
|
|
68 |
chmod 770 $clonezillaFolder/script |
|
69 |
|
|
70 |
chown -R clonezilla. $clonezillaFolder/* |
|
71 |
|
|
72 |
exit 0 |
installazioneAutomatizzata.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
|
|
3 |
DATUM="$(date +%d-%b-%Y-ore-%H-%M)" |
|
4 |
|
|
5 |
|
|
6 |
if [ -e /root/.ssh/authorized_keys ];then |
|
7 |
cp /root/.ssh/authorized_keys /root/.ssh/authorized_keys.BKP-$DATUM |
|
8 |
fi |
|
9 |
|
|
10 |
grep root@g450ddd /root/.ssh/authorized_keys >/dev/null |
|
11 |
|
|
12 |
if [ $? -eq 0 ]; then |
|
13 |
echo "authorized keys already there" |
|
14 |
else |
|
15 |
cat authorized_keys-da-APPENDARE-a-root-del-Fuss-Server >> /root/.ssh/authorized_keys |
|
16 |
fi |
|
17 |
|
|
18 |
cp -r CartellaPerClient-Via-Clonezilla.ssh /srv/clonezilla/.ssh |
|
19 |
|
|
20 |
chown -R clonezilla. /srv/clonezilla/.ssh |
|
21 |
|
|
22 |
chmod 400 /srv/clonezilla/.ssh/id_rsa* |
|
23 |
|
|
24 |
cp -r clientScripts /srv/clonezilla |
|
25 |
|
|
26 |
chmod -R 770 /srv/clonezilla/clientScripts |
|
27 |
|
|
28 |
|
|
29 |
if [ -e /srv/tftp/pxelinux.cfg/default ];then |
|
30 |
mv /srv/tftp/pxelinux.cfg/default /srv/tftp/pxelinux.cfg/default.BKP-$DATUM |
|
31 |
fi |
|
32 |
|
|
33 |
cp default /srv/tftp/pxelinux.cfg |
|
34 |
|
|
35 |
if [ -e /srv/clonezilla/ListaPc.txt ];then |
|
36 |
mv /srv/clonezilla/ListaPc.txt /srv/clonezilla/ListaPc.txt.BKP-$DATUM |
|
37 |
fi |
|
38 |
|
|
39 |
cp ListaPc.txt /srv/clonezilla |
|
40 |
|
|
41 |
if [ -e /srv/clonezilla/script ];then |
|
42 |
mv /srv/clonezilla/script /srv/clonezilla/script.BKP-$DATUM |
|
43 |
fi |
|
44 |
|
|
45 |
cp script /srv/clonezilla |
|
46 |
|
|
47 |
chmod 770 /srv/clonezilla/script |
|
48 |
|
|
49 |
chown -R clonezilla. /srv/clonezilla/* |
|
50 |
|
|
51 |
exit 0 |
script | ||
---|---|---|
5 | 5 |
# Donato Florio 11 April 2019 |
6 | 6 |
# |
7 | 7 |
# Last modified 02 May 2019 --> added modification to support cloning on nvme* devices (HP G450) |
8 |
# Last modified 07 May 2019 --> added various stuff for experimental autojoin |
|
8 |
# Last modified 07 May 2019 --> added various stuff for experimental autojoin to a domain |
|
9 |
# Last modified 21 June 2019 --> added various stuff for experimental join to a cluster |
|
10 |
# Last modified 01 July 2019 --> added ssh to script and changed disk detection method |
|
9 | 11 |
# |
10 | 12 |
# PRT 1 --------------------------- |
11 | 13 |
|
14 |
service ssh start |
|
12 | 15 |
|
13 |
# La funzione getNetStuff serve per recuperare il nome della NIC in uso sul sistema attuale. |
|
14 | 16 |
getNetStuff(){ |
15 | 17 |
if [ $1 -eq 1 ];then |
16 | 18 |
ls /sys/class/net/ -1 | grep -v lo | grep -v wlan |
... | ... | |
20 | 22 |
} |
21 | 23 |
|
22 | 24 |
getDisk(){ |
23 |
diskCount="$(ls /sys/block -1 | grep -Ev '(loop|sr|dvd|cd)' | wc -l)" |
|
24 |
|
|
25 |
if [ $diskCount -gt 1 ];then |
|
26 |
echo "ATTENZIONE! Questo computer sembra provvisto di più di un disco!" |
|
27 |
echo "" |
|
28 |
echo "La procedura automatica non prevede l'installazione su sistemi" |
|
29 |
echo "multidisco. Contattare il tecnico informatico." |
|
30 |
echo "" |
|
31 |
echo "Per sicurezza il computer verrà spento tra 10 secondi." |
|
25 |
for i in $(ls /sys/block/ | grep -Ev '(loop|sr|dvd|cd)') |
|
26 |
do |
|
27 |
if [ $(cat /sys/block/$i/removable) -eq 0 ];then |
|
28 |
myDevice="${myDevice} $i" |
|
29 |
fi |
|
30 |
done |
|
31 |
|
|
32 |
if [ $(echo $myDevice | wc -w) -gt 1 ];then |
|
33 |
echo "ATTENZIONE! Questo computer sembra provvisto di più di un disco!" |
|
34 |
echo "" |
|
35 |
echo "La procedura automatica non prevede l'installazione su sistemi" |
|
36 |
echo "multidisco. Contattare il tecnico informatico." |
|
37 |
echo "" |
|
38 |
echo "Per sicurezza il computer verrà spento tra 10 secondi." |
|
32 | 39 |
sleep 10 |
33 | 40 |
shutdown -h now |
34 | 41 |
else |
35 |
diskVar="$(ls /sys/block -1 | grep -Ev '(loop|sr|dvd|cd)')"
|
|
42 |
diskVar="$(echo $myDevice | tr -d [:blank:])"
|
|
36 | 43 |
fi |
37 | 44 |
|
38 |
# SSD portatili HP g450
|
|
45 |
# SSD of HP g450 laptops
|
|
39 | 46 |
if [ $diskVar == "nvme0n1" ];then |
40 | 47 |
rootPartition="p$rootPartition" |
41 | 48 |
fi |
... | ... | |
46 | 53 |
getDisk |
47 | 54 |
rootDisk="/dev/$diskVar" |
48 | 55 |
mountPoint="/mnt" |
49 |
computerList="/home/partimag/ListaPc.txt"
|
|
56 |
computerList="/home/partimag/computerList.txt"
|
|
50 | 57 |
macAddress=$(getNetStuff 2) |
51 | 58 |
imageName=$(cat $computerList | grep "$macAddress" | awk '{print $3}') |
52 | 59 |
|
... | ... | |
74 | 81 |
|
75 | 82 |
# ### Here I insert the part for the joining preparation of the machine |
76 | 83 |
|
77 |
# Veriy whether the machine has to be joined to the domain or not. |
|
84 |
# Verify whether the machine has to be joined to the domain or not.
|
|
78 | 85 |
# If so the .ssh keys are needed and also a script ..... |
79 | 86 |
|
80 |
joinVar="$(cat $computerList | grep "$macAddress" | awk '{print $4}')" |
|
87 |
joinVar="$(cat $computerList | grep "$macAddress" | awk '{print $4}')" |
|
88 |
|
|
89 |
clusterVar="$(cat $computerList | grep "$macAddress" | awk '{print $5}')" |
|
81 | 90 |
|
82 | 91 |
if [ "$joinVar" == "join" ];then |
83 | 92 |
rsync -a /home/partimag/.ssh/ /mnt/root/.ssh/ |
... | ... | |
88 | 97 |
chmod 770 /mnt/root/clientScript |
89 | 98 |
touch /mnt/root/reboot |
90 | 99 |
fi |
100 |
|
|
101 |
if [ "$clusterVar" != "" ];then |
|
102 |
clusterJoin="-g $clusterVar" |
|
103 |
echo "$clusterJoin" > /mnt/root/cluster |
|
104 |
fi |
|
105 |
|
|
106 |
|
|
107 |
|
|
91 | 108 |
# ### END of the preparation stuff |
92 | 109 |
|
93 | 110 |
|
sshKeysForClonezillaClient/id_rsa | ||
---|---|---|
1 |
-----BEGIN RSA PRIVATE KEY----- |
|
2 |
MIIEogIBAAKCAQEAxUgKLKJTcAakRIcHqbh4XbpdKSv+OPzVwBi0/hZ1Sa9tjaND |
|
3 |
gmyIzqTzaeRjIfGCSPqNePutvG/shcAcLG+fX+50Mqm8xLn9gMRf7ty/ojWSaTDn |
|
4 |
tdxapcHMQ6vNu5CxRrLOLgtSN8molM+XPsjzuMbX7qOmOoLulpQwqKRnarYiZKcQ |
|
5 |
lzyKSjrzdmm9g6FKvWnBlgc/3QP2r3jxs2D+beE9QooXbGmyiyG+1DEus1U2/vUA |
|
6 |
xLrF/xsZ7cCSUTWMm3zubSTyKCW0bUn33I1KnUlh7QTvHxWiVjCVUVGqOY2O8KOE |
|
7 |
rf4pDDOm75e0xlnlCoeoLKu3nPfZXS9gKWcpFwIDAQABAoIBAA2JePFBHjqUqhbt |
|
8 |
sQ/rUY8U56mYlDQy3TP2Pg0lW1z4BatvZYWAjw6m8PD2M/szSD5buvNvSaehgnhX |
|
9 |
C1fdPPFnOl/zl7lkDcoVL4QDb77gsDA5o9ytxyaSmsKV+mMBdbilMlKkgjrDwqab |
|
10 |
bARp45dtRYnhftmK/HYmqwQXa+U9hUfKMbLjumQksbpHBOd14CSCeMYsXWO6Y1Fq |
|
11 |
3bAUn5gG6hmehKFIdQCYRZ/15jG/Ci+XfmIW2LC3x+AUEmPii1k+vr6AyUkDDunD |
|
12 |
3heWlxrFj2TB/YTFysGBscsY/8fFWyE7T5vzVsmrWlpnW86foixliNQyKwOs6SSz |
|
13 |
IxQ3K6ECgYEA8ef0JSXCFwcHit7APSDyh6fzsOBwvH03Dlvs+AjRcRE4V2VFSQsu |
|
14 |
Ecv577ePmfz3WVgQe8zVCTLsX68rUeoIPnpfW24rqHPltPbU6ODzcOLuZJ1t+9cl |
|
15 |
/2q/1jlY82vEy96+Nae1RI45z5JHnpCSZ95Flku6r9wBsfbssNcMgIcCgYEA0MaB |
|
16 |
iUvwcY/gXBH0k+JTPwxuiObvg8R1sWctEn1JRB30UZixlETSTAlfW2xbGL7zBJxh |
|
17 |
IjlZpzCwQl1Tlpe9Qoc8qCidMTyvH5RbOMxQFz7JTea1Y/Pk9gQQaL9ZJ7Pugphj |
|
18 |
hkkeqvBG6z7uKRxdY43Y6cK2qxX1I7issfopBvECgYBf1T9wc/vnOX6wcjyAOww5 |
|
19 |
17x/5vpigcyM4LgJLx0iCOtkHBeNr2Mp47/5SqQWIhQvjebB1MzU3xqrcW7c/bUU |
|
20 |
Y1BhnUyoaHmo7lw8gdmPcCd3LrMCoSJJhJXJHWDy1k/ZYD3EbdMu/JVEeTPsSmPl |
|
21 |
yDWTLB8iSitVwHfWOuuWAwKBgDbyB2V69uzsUL/qedPx3LbbLrwZCzBCpDbsUJBt |
|
22 |
KLskpwhSh2neMvqP/Oiyu8bnek3cWjQHo/C8f6b3qOgZR1YbAXvANJ6gufY1tUxd |
|
23 |
eTak75XxAgwsRDX7G9Z1haFNWZhFQuw0kj2qvv9qsINhU7K/wjbDaA/e14VvNQQi |
|
24 |
MmoBAoGAOER5lSRUoDpRctB5zgWkug92MdPLbL52R2X+JI1pJ6nHNOTXtaHeNhPn |
|
25 |
zTraPMBj2i9Ivic9fP2yCYFNuZydGymbeq6w6m5/qv33WZTLXFPADxVV9Zj1VdnC |
|
26 |
BUm7u+3SNXSRRHQEZHMzJKlBzk0xKEZ5V8XAJcf3kOhzBOZsmiE= |
|
27 |
-----END RSA PRIVATE KEY----- |
sshKeysForClonezillaClient/id_rsa.pub | ||
---|---|---|
1 |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFSAosolNwBqREhwepuHhdul0pK/44/NXAGLT+FnVJr22No0OCbIjOpPNp5GMh8YJI+o14+628b+yFwBwsb59f7nQyqbzEuf2AxF/u3L+iNZJpMOe13FqlwcxDq827kLFGss4uC1I3yaiUz5c+yPO4xtfuo6Y6gu6WlDCopGdqtiJkpxCXPIpKOvN2ab2DoUq9acGWBz/dA/avePGzYP5t4T1CihdsabKLIb7UMS6zVTb+9QDEusX/GxntwJJRNYybfO5tJPIoJbRtSffcjUqdSWHtBO8fFaJWMJVRUao5jY7wo4St/ikMM6bvl7TGWeUKh6gsq7ec99ldL2ApZykX root@g450ddd |
Also available in: Unified diff
Various modifications.