From a707c6c47fc7a84920072b8d05526eac164eaeb1 Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Fri, 6 Mar 2015 16:10:12 +0000 Subject: [PATCH] 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 --- .../roles/os_nova/tasks/nova_compute_key_create.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/playbooks/roles/os_nova/tasks/nova_compute_key_create.yml b/playbooks/roles/os_nova/tasks/nova_compute_key_create.yml index 56048ca829..5bdab33d81 100644 --- a/playbooks/roles/os_nova/tasks/nova_compute_key_create.yml +++ b/playbooks/roles/os_nova/tasks/nova_compute_key_create.yml @@ -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 ""