Add bit to heat template user data script to enable ssh root login

This commit is contained in:
James Slagle 2015-01-20 17:09:03 -05:00
parent ae2d184e78
commit e0bf70580d

View File

@ -44,6 +44,8 @@ resources:
# Mount the config drive and extract the discovery data
mount /dev/disk/by-label/disklabel /mnt
jq -r ".metadata_key" /mnt/openstack/latest/meta_data.json > /tmp/discovery.json
# Enable ssh as root for Puppet.
sed -i -e 's/.*ssh-/ssh-/' ~root/.ssh/authorized_keys
params:
disklabel: { get_param: config_drive_label }