Skip to content

Commit

Permalink
[nova]Ensure ssh_knonw_hosts are mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
gibizer committed Oct 18, 2023
1 parent 7bb7d46 commit b9ca9a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions roles/edpm_nova/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@
owner: root
group: root
mode: 0755
- name: Create ssh_known_hosts file
become: true
ansible.builtin.file:
path: '/etc/ssh/ssh_known_hosts'
state: touch
owner: root
group: root
mode: 0655
1 change: 1 addition & 0 deletions roles/edpm_nova/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- "/var/lib/openstack/config/containers"
- "/var/log/containers"
- "/var/log/containers/stdouts"
- "/etc/ssh/ssh_known_hosts"
# extrenal deps
- "/var/lib/openstack/config/ceph"
# nova directories
Expand Down
3 changes: 2 additions & 1 deletion roles/edpm_nova/templates/nova_compute.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"/etc/multipath:/etc/multipath:z",
"/etc/multipath.conf:/etc/multipath.conf:ro",
"/etc/iscsi:/etc/iscsi:ro",
"/var/lib/openstack/config/ceph:/var/lib/kolla/config_files/ceph:ro"
"/var/lib/openstack/config/ceph:/var/lib/kolla/config_files/ceph:ro",
"/etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro"
]
}

0 comments on commit b9ca9a5

Please sign in to comment.