Loading nodes/gen_ssh_config +5 −5 Original line number Diff line number Diff line Loading @@ -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 −1 Original line number Diff line number Diff line - hostname: jenkins.debian.net,jenkins - hostname: jenkins.debian.net ip: 46.16.76.207 keys: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAVYP8sYSp95zWTMFVEbt6aw3RAyv+4tjNh/JfbsihXQ root@jenkins Loading Loading
nodes/gen_ssh_config +5 −5 Original line number Diff line number Diff line Loading @@ -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 −1 Original line number Diff line number Diff line - hostname: jenkins.debian.net,jenkins - hostname: jenkins.debian.net ip: 46.16.76.207 keys: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAVYP8sYSp95zWTMFVEbt6aw3RAyv+4tjNh/JfbsihXQ root@jenkins Loading