[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 6 commits: start building up a static list of ssh host keys

Mattia Rizzolo gitlab at salsa.debian.org
Thu Mar 28 13:33:11 GMT 2019



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
5230852b by Mattia Rizzolo at 2019-03-28T11:07:16Z
start building up a static list of ssh host keys

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -
ea5f5d51 by Mattia Rizzolo at 2019-03-28T12:02:23Z
add host keys for all nodes

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -
63d5fa7e by Mattia Rizzolo at 2019-03-28T12:57:16Z
drop list of hosts from deploy_jdn

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -
eaff665a by Mattia Rizzolo at 2019-03-28T12:58:05Z
build up the ssh_config file based on nodes/list.yml

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -
79e39b91 by Mattia Rizzolo at 2019-03-28T13:25:23Z
shuffle the nodes around

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -
3b074b5f by Mattia Rizzolo at 2019-03-28T13:32:26Z
install the generated known_host file under /etc

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


8 changed files:

- deploy_jdn
- − jenkins-home/ssh_config
- + jenkins-home/ssh_config.in
- + nodes/gen_known_host_file
- + nodes/gen_ssh_config
- + nodes/list.yml
- + nodes/list_nodes
- update_jdn.sh


Changes:

=====================================
deploy_jdn
=====================================
@@ -34,59 +34,8 @@
 
 START=$(date +'%s')
 GIT_REPO="https://salsa.debian.org/qa/jenkins.debian.net.git"
-HOSTS=(
-codethink-sled9-arm64.debian.net
-codethink-sled10-arm64.debian.net
-codethink-sled11-arm64.debian.net
-codethink-sled12-arm64.debian.net
-codethink-sled13-arm64.debian.net
-codethink-sled14-arm64.debian.net
-codethink-sled15-arm64.debian.net
-codethink-sled16-arm64.debian.net
-profitbricks-build2-i386.debian.net
-profitbricks-build6-i386.debian.net
-profitbricks-build12-i386.debian.net
-profitbricks-build16-i386.debian.net
-profitbricks-build1-amd64.debian.net
-profitbricks-build5-amd64.debian.net
-profitbricks-build9-amd64.debian.net
-profitbricks-build10-amd64.debian.net
-profitbricks-build11-amd64.debian.net
-profitbricks-build15-amd64.debian.net
-osuosl-build167-amd64.debian.net
-osuosl-build168-amd64.debian.net
-osuosl-build169-amd64.debian.net
-osuosl-build170-amd64.debian.net
-osuosl-build171-amd64.debian.net
-osuosl-build172-amd64.debian.net
-osuosl-build173-amd64.debian.net
-osuosl-build174-amd64.debian.net
-bbx15-armhf-rb.debian.net
-cb3a-armhf-rb.debian.net
-cbxi4a-armhf-rb.debian.net
-cbxi4b-armhf-rb.debian.net
-cbxi4pro0-armhf-rb.debian.net
-ff2a-armhf-rb.debian.net
-ff2b-armhf-rb.debian.net
-ff4a-armhf-rb.debian.net
-ff64a-armhf-rb.debian.net
-jtk1a-armhf-rb.debian.net
-jtk1b-armhf-rb.debian.net
-jtx1a-armhf-rb.debian.net
-jtx1b-armhf-rb.debian.net
-jtx1c-armhf-rb.debian.net
-odu3a-armhf-rb.debian.net
-odxu4a-armhf-rb.debian.net
-odxu4b-armhf-rb.debian.net
-odxu4c-armhf-rb.debian.net
-opi2a-armhf-rb.debian.net
-opi2b-armhf-rb.debian.net
-opi2c-armhf-rb.debian.net
-p64b-armhf-rb.debian.net
-p64c-armhf-rb.debian.net
-wbq0-armhf-rb.debian.net
-root at jenkins.debian.net
-)
+mapfile -t HOSTS < <(nodes/list_nodes | grep -v jenkins.debian.net)
+HOSTS+=(root at jenkins.debian.net)
 
 ALL_HOSTS=("${HOSTS[@]}")
 


=====================================
jenkins-home/ssh_config deleted
=====================================
@@ -1,97 +0,0 @@
-HashKnownHosts no
-Host *
-	ControlMaster auto
-	ControlPath ~/.ssh/master-%r@%h:%p
-Host bpi0-armhf-rb.debian.net
-	Port 2222
-Host hb0-armhf-rb.debian.net
-	Port 2224
-Host wbq0-armhf-rb.debian.net
-	Port 2225
-Host cbxi4pro0-armhf-rb.debian.net
-	Port 2226
-Host cbxi4a-armhf-rb.debian.net
-	Port 2239
-Host cbxi4b-armhf-rb.debian.net
-	Port 2240
-Host cb3a-armhf-rb.debian.net
-	Port 2244
-Host odxu4a-armhf-rb.debian.net
-	Port 2229
-Host wbd0-armhf-rb.debian.net
-	Port 2223
-Host rpi2b-armhf-rb.debian.net
-	Port 2230
-Host rpi2c-armhf-rb.debian.net
-	Port 2235
-Host odxu4b-armhf-rb.debian.net
-	Port 2232
-Host odxu4c-armhf-rb.debian.net
-	Port 2233
-Host ff2a-armhf-rb.debian.net
-	Port 2234
-Host ff2b-armhf-rb.debian.net
-	Port 2237
-Host ff4a-armhf-rb.debian.net
-	Port 2241
-Host bbx15-armhf-rb.debian.net
-	Port 2242
-Host opi2a-armhf-rb.debian.net
-	Port 2236
-Host opi2b-armhf-rb.debian.net
-	Port 2238
-Host jtk1a-armhf-rb.debian.net
-	Port 2246
-Host jtk1b-armhf-rb.debian.net
-	Port 2252
-Host opi2c-armhf-rb.debian.net
-	Port 2245
-Host odu3a-armhf-rb.debian.net
-	Port 2243
-Host p64b-armhf-rb.debian.net
-	Port 2247
-Host p64c-armhf-rb.debian.net
-	Port 2248
-Host ff64a-armhf-rb.debian.net
-	Port 2250
-Host jtx1a-armhf-rb.debian.net
-	Port 2249
-Host jtx1b-armhf-rb.debian.net
-	Port 2253
-Host jtx1c-armhf-rb.debian.net
-	Port 2254
-Host odc2a-armhf-rb.debian.net
-	Port 2251
-Host osuosl-build167-amd64.debian.net
-	Port 45046
-Host osuosl-build168-amd64.debian.net
-	Port 45047
-Host osuosl-build169-amd64.debian.net
-	Port 45048
-Host osuosl-build170-amd64.debian.net
-	Port 45049
-Host osuosl-build171-amd64.debian.net
-	Port 45050
-Host osuosl-build172-amd64.debian.net
-	Port 45051
-Host osuosl-build173-amd64.debian.net
-	Port 45052
-Host osuosl-build174-amd64.debian.net
-	Port 45053
-Host codethink-sled9-arm64.debian.net
-	Port 10109
-Host codethink-sled10-arm64.debian.net
-	Port 10110
-Host codethink-sled11-arm64.debian.net
-	Port 10111
-Host codethink-sled12-arm64.debian.net
-	Port 10112
-Host codethink-sled13-arm64.debian.net
-	Port 10113
-Host codethink-sled14-arm64.debian.net
-	Port 10114
-Host codethink-sled15-arm64.debian.net
-	Port 10115
-Host codethink-sled16-arm64.debian.net
-	Port 10116
-


=====================================
jenkins-home/ssh_config.in
=====================================
@@ -0,0 +1,6 @@
+Host *
+    HashKnownHosts no
+    ControlMaster auto
+    ControlPath ~/.ssh/master-%r@%h:%p
+
+# update_jdn will append here host specific instructions


=====================================
nodes/gen_known_host_file
=====================================
@@ -0,0 +1,39 @@
+#! /usr/bin/python3
+
+import os
+import sys
+import yaml
+
+with open(os.path.join(os.path.dirname(__file__), 'list.yml')) as f:
+    data = yaml.load(f)
+
+
+class Host:
+    def __init__(self, d):
+        self.hostname = d['hostname']
+        self.ip = d['ip']
+        self.keys = d['keys']
+        try:
+            self.port = d['port']
+        except KeyError:
+            self.port = None
+
+
+for host in data:
+    try:
+        h = Host(host)
+    except KeyError as e:
+        print('Missing required key "{}"'.format(e), file=sys.stderr)
+        sys.exit(1)
+
+    for key in h.keys:
+        fmt = {
+            'h': h.hostname,
+            'i': h.ip,
+            'p': h.port,
+            'k': key,
+        }
+        if h.port is None:
+            print('{h},{i} {k}'.format(**fmt))
+        else:
+            print('[{h}]:{p},[{i}]:{p} {k}'.format(**fmt))


=====================================
nodes/gen_ssh_config
=====================================
@@ -0,0 +1,16 @@
+#! /usr/bin/python3
+
+import os
+import yaml
+
+with open(os.path.join(os.path.dirname(__file__), 'list.yml')) as f:
+    data = yaml.load(f)
+
+for host in data:
+    try:
+        port = host['port']
+    except KeyError:
+        # port not defined; no need to write this paragraph
+        continue
+    print('Host', host['hostname'])
+    print('    Port', port)


=====================================
nodes/list.yml
=====================================
@@ -0,0 +1,254 @@
+- hostname: jenkins.debian.net,jenkins
+  ip: 78.137.96.196
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAVYP8sYSp95zWTMFVEbt6aw3RAyv+4tjNh/JfbsihXQ root at jenkins
+    - ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNE6RhNS1kjo2nlEMXzNM4G0fMB/AQECLiXZZVfKKyHnmPTj+bAAvf98vAJ5QpAT2+wt/nF9xSIPKVJNSnxoC2I= root at jenkins
+    - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDklpU2iLalJONEFGJe42Sg2cISwCiDaq/nAEgIAnbDpnkyDC9PRUcsT3j72AWhoau0FUGcHxCUndTRNiz71M2nPyxyqOFMXpcQqlMnDdDzfOg41BCGnOHbTihtPtTiS4nRm3mQgT0fTMar367daWjpe0gQd0+h5Ec7y7N11iFUMKA6i70fePSS2vPtVMfsayMyHkH/hPWi2OFPP0WV9RLS/TH91KEy/oRb4MNEi10cfsERXpEAB+JLMtQZuhAwKNwAn54KuC1MThFOmgxw8/sCfYYlNpjSMgaBtgqxuoQMZbeGqiIYIj9IzbYwUST5EHfm6CNIvqqqmbz4k3MwRGkZ root at jenkins
+
+# x86 profitbricks
+- hostname: profitbricks-build1-amd64.debian.net
+  ip: 78.137.99.97
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINnatbql/ru6kRgXLWSeFS/hsl+kAqwAu5/RU76SNBQQ root at debian
+- hostname: profitbricks-build2-i386.debian.net
+  ip: 46.16.73.166
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFez9q/k1rxbsQ2odoGTvThfyi+TlYTKNagNsjTcQrYA root at profitbricks-build2-i386
+- hostname: profitbricks-build5-amd64.debian.net
+  ip: 85.184.249.46
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJIxI1NQOcSv4GZqBcixQ2hA/nTGxsxMc9N5UUjuR3V2 root at debian
+- hostname: profitbricks-build6-i386.debian.net
+  ip: 213.244.192.14
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAMBF2j2Xq41fXFC2z5O23AMB4wRqkiisge5hv8BjUxG root at profitbricks-build6-i386
+- hostname: profitbricks-build9-amd64.debian.net
+  ip: 46.16.78.222
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII1qzcNyDC5gsodfjm+zr2/KGaY96K3VzPbhVR7Dq7Sy root at debian
+- hostname: profitbricks-build10-amd64.debian.net
+  ip: 85.184.249.68
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINChZiAhYZJd4mC/5snOiDtCqvu0ep6cppHH3eJ49Cct root at debian
+- hostname: profitbricks-build11-amd64.debian.net
+  ip: 78.137.101.155
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZVWw5L934jafl0hoNVYxMiYBXco8/x0cfwpFB6WmJ2 root at debian
+- hostname: profitbricks-build12-i386.debian.net
+  ip: 46.16.73.168
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPymi8reXg3GKwbT2wthm7vdMaFSPqrn7TJfHgmGgUgk root at profitbricks-build12-i386
+- hostname: profitbricks-build15-amd64.debian.net
+  ip: 157.97.110.46
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF5BdtJ0mpxqqsqnshMKfuew5CDfvWzHyef/26uhkjq+ root at debian
+- hostname: profitbricks-build16-i386.debian.net
+  ip: 85.184.249.230
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHpQZqTEC04W87vDJtnhpRTx/9FihfQ2YQoalclFJMVz root at profitbricks-build16-i386
+
+# x86 osuosl
+- hostname: osuosl-build167-amd64.debian.net
+  ip: 128.193.126.200
+  port: 45046
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIrs6U0w34/OQpm+vPgg8NExsqCcLR06yQnk8J/ZeXT5 root at gcc167
+- hostname: osuosl-build168-amd64.debian.net
+  ip: 128.193.126.200
+  port: 45047
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKW0YYo21NiN6dzM0Rnu+XCu13NEgZOPsKo50gJJF/HJ root at gcc168
+- hostname: osuosl-build169-amd64.debian.net
+  ip: 128.193.126.200
+  port: 45048
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP3IPpuQbbkPI0g9ELV7XT/Wg9J3OwYDUNPKgy5CXluX root at gcc169
+- hostname: osuosl-build170-amd64.debian.net
+  ip: 128.193.126.200
+  port: 45049
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP0tz2xw8wZZWX8THoJVAF7W/xDsIl47KCKx2u+zj6NZ root at gcc170
+- hostname: osuosl-build171-amd64.debian.net
+  ip: 128.193.126.200
+  port: 45050
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINnoofw7vcw32tYyrMqGOoF6hoZ4zouIQkEBExL15JiG root at gcc171
+- hostname: osuosl-build172-amd64.debian.net
+  ip: 128.193.126.200
+  port: 45051
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICdPDtykqN6VtH0qIcim11725N5ZJiloOKI33YVvpqxI root at gcc172
+- hostname: osuosl-build173-amd64.debian.net
+  ip: 128.193.126.200
+  port: 45052
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILbVh1pcBRs/m5Skt56F3KAVxQFq9mM2eII8f1IfE3A2 root at gcc173
+- hostname: osuosl-build174-amd64.debian.net
+  ip: 128.193.126.200
+  port: 45053
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEtj8tDmRAoZUBum1GqPupVSq1hhjtt0V8SL9zOxassT root at gcc174
+
+# arm64
+- hostname: codethink-sled9-arm64.debian.net
+  ip: 78.40.148.164
+  port: 10109
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIWSbi27ipvqgA0JdC1nwoYhg8p/Toq5cJXSmUyHwsbj root at codethink-sled9-arm64
+- hostname: codethink-sled10-arm64.debian.net
+  ip: 78.40.148.164
+  port: 10110
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGZ90P6Iot+AHEx/+8AGFKYlYHzcWFikmI37gUvaG3Gk root at sled10
+- hostname: codethink-sled11-arm64.debian.net
+  ip: 78.40.148.164
+  port: 10111
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAJJ8fvhFeE7ePVNmjqN7wwfQ3tswAbs9rqDRxd5tXb root at sled11
+- hostname: codethink-sled12-arm64.debian.net
+  ip: 78.40.148.164
+  port: 10112
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL5aPBK8SPG8Qs3PronNtvpbB+4izRz8qPaY7+dCkBZY root at sled12
+- hostname: codethink-sled13-arm64.debian.net
+  ip: 78.40.148.164
+  port: 10113
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGnHniDoWxNiZV8qtyfOPNFoXRK+GhYisLP8hCJu5ryS root at sled13
+- hostname: codethink-sled14-arm64.debian.net
+  ip: 78.40.148.164
+  port: 10114
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL6oZI38HeglW+3gEkLr0FXfVApVRkBK+bDms68KwAc root at sled14
+- hostname: codethink-sled15-arm64.debian.net
+  ip: 78.40.148.164
+  port: 10115
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN7XShDEh0j2LhUzjbtR9hHXrsKzi0Yx86UrtPdoQc+m root at sled15
+- hostname: codethink-sled16-arm64.debian.net
+  ip: 78.40.148.164
+  port: 10116
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFlNpch4lpSdL1K60Z8HwYxtrY2LJVmacnW9h6jhk3Fe root at sled16
+
+# armhf
+- hostname: bbx15-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2242
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEKVNDREKhC+aBLY8j+ptEOtZA4Nagm1u+3FnC5NYlwb root at bbx15
+- hostname: cb3a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2244
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH6b9fYiJ7UZVQuSxuRD4iomCyan1YxifGb1CKBkwI5f root at cb3a
+- hostname: cbxi4a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2239
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPGR99RD6NhIag7rqMgwam5LkkSLulax/oNDTFDX/W4d root at cbxi4a
+- hostname: cbxi4b-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2240
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDJeqPW/ZU4MRnr3h65J8GE9Ov/UvZU6JwtdmN8heM7 root at cbxi4b
+- hostname: cbxi4pro0-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2226
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItrniNdsLdoTz60tjmrlYUOWADSD1npMvUANZqE/CqU root at cbxi4pro0
+- hostname: ff2a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2234
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJZzVtwaLtTuuiy+45O4+ym11myyqfwC1hokLtBbf9gz root at ff2a
+- hostname: ff2b-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2237
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF8rhR3nfnzlM2zw1Dc3Pg7AIF+NkGX2+f3/9eZgtz18 root at ff2b
+- hostname: ff4a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2241
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKYkmrAKGQxedIpfFmWHdGeuUkAUag7+firCPPnEJgb root at ff4a
+- hostname: ff64a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2250
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILS8JWrw1/2E43HZQKpdV6eg6q5SgxUn3EFsDN6ScQSX root at ff64a
+- hostname: jtk1a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2246
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFUAiMcaH8QU+O5Gg3B5ECcrwaQtewrHdkCsnJCQjvZP root at jtk1a
+- hostname: jtk1b-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2252
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4skWiTTiXvYBXl2iJgZPA0hQEawBwmSRWgB9hBr/SZ root at jtk1b
+- hostname: jtx1a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2249
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEmAvTregr0PIoR1V03b4c1amc7Uhu76wyy5KqoEq40x root at jtx1a
+- hostname: jtx1b-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2253
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPpDyNs/czjIXCvIGGXjj4cwf2m0nD/kVtbMWyUtir/M root at jtx1b
+- hostname: jtx1c-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2254
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBKyJXxdHhWuq3RcgEQWI4Vn3ql5gss7PYPa9FBVVFsg root at jtx1cx
+- hostname: odu3a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2243
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHpVhcqBq8OGYRbd9Qj1DFHX4Lc2pnB0vGdUMr9GnAYv root at odu3a
+- hostname: odxu4a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2229
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN8ZcHsuBnKDO4c4t0CurvAPT67kOCl7urLlXxerR7b6 root at odxu4a
+- hostname: odxu4b-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2232
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII4ysLWXJL7rDYtrHGI/G4knWKo7rfn75NGJj5L37sKc root at odxu4b
+- hostname: odxu4c-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2233
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFz+RmEkj6AqeBKqUvP8PRLPmbjjnVhc2xwMwN18pa6A root at odxu4c
+- hostname: opi2a-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2236
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKVUUlhOcJTBg+Gpr2k7ImCpkENzeoP9x9GYyvXAfOq7 root at opi2a
+- hostname: opi2b-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2238
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK0Hcbx6rSL3Ar1X1BF+9ra433zD1wfoEen+srND3oZi root at opi2b
+- hostname: opi2c-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2245
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPALLv370+l2CfkV84TFzpuMFa0uRU+cJat3+s+j0Jrv root at opi2c
+- hostname: p64b-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2247
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII72lFT+t6TR/nzETrUOq354iZFr70A872JowpInbxqU root at p64b
+- hostname: p64c-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2248
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICtsjm6UDHyJvqQVlM/SRZpbgd7/QVQ4keMkRyiAZnkm root at p64c
+- hostname: wbq0-armhf-rb.debian.net
+  ip: 75.164.186.179
+  port: 2225
+  keys:
+    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILcEEk0GyoCdOkNugtaADcIluZWbxykVhjJDpttwvWfG root at wbq0


=====================================
nodes/list_nodes
=====================================
@@ -0,0 +1,9 @@
+#! /usr/bin/python3
+
+import os
+import yaml
+
+with open(os.path.join(os.path.dirname(__file__), 'list.yml')) as f:
+    d = yaml.load(f)
+    for host in d:
+        print(host['hostname'])


=====================================
update_jdn.sh
=====================================
@@ -621,7 +621,9 @@ if [ "$HOSTNAME" = "jenkins" ] ; then
 else
 	sudo cp jenkins-nodes-home/authorized_keys /var/lib/jenkins/.ssh/authorized_keys
 fi
-sudo -u jenkins cp jenkins-home/ssh_config /var/lib/jenkins/.ssh/config
+sudo -u jenkins cp jenkins-home/ssh_config.in /var/lib/jenkins/.ssh/config
+nodes/gen_ssh_config | sudo -u jenkins tee -a /var/lib/jenkins/.ssh/config > /dev/null
+nodes/gen_known_host_file | sudo tee /etc/ssh/ssh_known_hosts > /dev/null
 explain "scripts and configurations for jenkins updated."
 
 if [ "$HOSTNAME" = "jenkins" ] ; then



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/8bc0af307868d3565b5c6d62d20b71b93a505ec3...3b074b5f7da6b3962f4e7dbbf996ef197070ee86

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/8bc0af307868d3565b5c6d62d20b71b93a505ec3...3b074b5f7da6b3962f4e7dbbf996ef197070ee86
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190328/a469eddc/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list