allow nova user to log to other node using ssh key

This commit is contained in:
Miroslav Suchý 2015-04-14 13:32:10 +00:00
parent 725adbff63
commit 36d21bd670
2 changed files with 10 additions and 0 deletions

View file

@ -232,6 +232,9 @@
when: packstack_sucessfully_finished.stat.exists == False
- file: path=/etc/packstack_sucessfully_finished state=touch
- name: Set shell to nova user to allow cold migrations
user: name=nova shell=/bin/bash
# FIXME we should really reboot here
# http://docs.openstack.org/icehouse/install-guide/install/yum/content/basics-queue.html

View file

@ -285,6 +285,13 @@
notify:
- restart openstack-nova-compute
- name: Set shell to nova user to allow cold migrations
user: name=nova shell=/bin/bash
- name: SSH public key for nova user
authorized_key: user=nova key="{{fed_cloud09_nova_public_key}}"
- name: Deploy private SSH key
copy: src={{ private }}/files/openstack/fed-cloud09-nova.key dest=/var/lib/nova/.ssh/ mode=600 owner=nova group=nova
# This needs to be run after controller reprovision
- name: "restart neutron-openvswitch-agent"
service: name=neutron-openvswitch-agent state=restarted