use cloud-init for templates, add ssh key for cloud-init, delete expire before vm creation

This commit is contained in:
Jordan Rodgers 2018-05-07 01:09:36 -04:00
parent dd876a8b2c
commit a3f15134f2
12 changed files with 55 additions and 88 deletions

View file

@ -80,6 +80,7 @@ def start_ssh_tunnel(node, port):
node,
ssh_username='root',
ssh_pkey='proxmox_ssh_key',
ssh_private_key_password=app.config['PROXMOX_SSH_KEY_PASS'],
remote_bind_address=('127.0.0.1', port),
local_bind_address=('127.0.0.1', port))
server.start()