[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] set StrictHostKeyChecking, now that we are nicely handling the host keys

Mattia Rizzolo gitlab at salsa.debian.org
Thu Mar 28 13:47:19 GMT 2019



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


Commits:
37bb8c04 by Mattia Rizzolo at 2019-03-28T13:46:56Z
set StrictHostKeyChecking, now that we are nicely handling the host keys

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

- - - - -


2 changed files:

- nodes/gen_ssh_config
- nodes/list.yml


Changes:

=====================================
nodes/gen_ssh_config
=====================================
@@ -7,10 +7,10 @@ with open(os.path.join(os.path.dirname(__file__), 'list.yml')) as f:
     data = yaml.load(f)
 
 for host in data:
+    print('Host', host['hostname'])
+    print('    StrictHostKeyChecking yes')
     try:
-        port = host['port']
+        print('    Port', host['port'])
     except KeyError:
-        # port not defined; no need to write this paragraph
-        continue
-    print('Host', host['hostname'])
-    print('    Port', port)
+        # default port, leave it.
+        pass


=====================================
nodes/list.yml
=====================================
@@ -1,4 +1,4 @@
-- hostname: jenkins.debian.net,jenkins
+- hostname: jenkins.debian.net
   ip: 46.16.76.207
   keys:
     - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAVYP8sYSp95zWTMFVEbt6aw3RAyv+4tjNh/JfbsihXQ root at jenkins



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/37bb8c04cf87a1d29c1ca08020e6ec37a17a23de

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/37bb8c04cf87a1d29c1ca08020e6ec37a17a23de
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/70ea860e/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list