Create /var/lib/nova/.ssh/config

We are currently not dropping the included config file, which is
preventing nova from being able to resize/migrate from one host to
another.  This change simply drops the config file which we already
have under the os_nova role to the correct location.

Change-Id: I2d054f095bc76c821aa7b87f5f2890037260066a
Closes-Bug: #1429188
This commit is contained in:
Matt Thompson 2015-03-06 16:10:12 +00:00
parent e2d6ee0780
commit a707c6c47f
1 changed files with 11 additions and 0 deletions

View File

@ -25,6 +25,17 @@
- nova-key
- nova-key-create
- name: Create the nova SSH config file
copy:
src: "ssh_config"
dest: "/var/lib/nova/.ssh/config"
owner: "{{ nova_system_user_name }}"
group: "{{ nova_system_user_name }}"
mode: "0644"
tags:
- nova-key
- nova-key-create
- name: Create the nova SSH key if it doesnt exist
command: |
ssh-keygen -f {{ nova_system_home_folder }}/.ssh/id_rsa -t rsa -q -N ""