only use proxmox ssh backend for cloud-init

This commit is contained in:
Jordan Rodgers 2018-05-07 13:31:48 -04:00
parent 04d588d688
commit f4a2174f29
4 changed files with 24 additions and 5 deletions

View file

@ -78,7 +78,7 @@ def start_ssh_tunnel(node, port):
port = int(port)
server = SSHTunnelForwarder(
node,
ssh_username='root',
ssh_username=app.config['PROXMOX_SSH_USER'],
ssh_pkey='proxmox_ssh_key',
ssh_private_key_password=app.config['PROXMOX_SSH_KEY_PASS'],
remote_bind_address=('127.0.0.1', port),