Inject rather than read-out the virt power key.

Currently we make a throwaway key when using the virtual power
manager. This doesn't work all that well - users authorised_key files
get huge - and it doesn't work at all for Tripleo-CI.

Change-Id: I93191f8716a9e77da789a12c531ffa00bcd6cd5b
This commit is contained in:
Robert Collins 2014-02-13 11:17:47 +13:00
parent e77bb14ba7
commit e401ef4f38
4 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,4 @@
iptables
nova-compute
os-apply-config
os-refresh-config

View File

@ -0,0 +1 @@
{{nova.baremetal.virtual_power.ssh_key}}

View File

@ -140,7 +140,7 @@ pxe_deploy_timeout={{pxe_deploy_timeout}}
power_manager = {{power_manager}}
{{#virtual_power}}
virtual_power_host_user={{user}}
virtual_power_host_key={{key}}
virtual_power_host_key=/mnt/state/var/lib/nova/virtual-power-key
virtual_power_ssh_host={{ssh_host}}
virtual_power_type={{type}}
{{/virtual_power}}

View File

@ -36,7 +36,7 @@
"pxe_deploy_timeout": "2400",
"virtual_power": {
"user": "stack",
"key": "/opt/stack/boot-stack/virtual-power-key",
"ssh_key": "PUTAPRIVATEKEYHERE",
"ssh_host": "192.168.122.1",
"type": "virsh"
}