Skip to content
Snippets Groups Projects
Commit e7ffb3b8 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Generate hostnqn"

parents 5cc1c685 8b3e755b
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,21 @@ ...@@ -92,6 +92,21 @@
notify: notify:
- "Restart {{ item.key }} container" - "Restart {{ item.key }} container"
- name: Generating 'hostnqn' file for cinder_volume
vars:
service: "{{ cinder_services['cinder-volume'] }}"
hostnqn: "nqn.2014-08.org.nvmexpress:uuid:{{ ansible_facts.hostname | to_uuid }}"
template:
src: "templates/hostnqn.j2"
dest: "{{ node_config_directory }}/cinder-volume/hostnqn"
mode: "0660"
become: true
when:
- inventory_hostname in groups[service.group]
- service.enabled | bool
notify:
- Restart cinder-volume container
- name: Copying over existing policy file - name: Copying over existing policy file
become: true become: true
template: template:
......
...@@ -19,6 +19,12 @@ ...@@ -19,6 +19,12 @@
"owner": "cinder", "owner": "cinder",
"perm": "0600", "perm": "0600",
"optional": {{ (not enable_cinder_backend_nfs | bool) | string | lower }} "optional": {{ (not enable_cinder_backend_nfs | bool) | string | lower }}
},
{
"source": "{{ container_config_directory }}/hostnqn",
"dest": "/etc/nvme/hostnqn",
"owner": "root",
"perm": "0644"
}{% if cinder_policy_file is defined %}, }{% if cinder_policy_file is defined %},
{ {
"source": "{{ container_config_directory }}/{{ cinder_policy_file }}", "source": "{{ container_config_directory }}/{{ cinder_policy_file }}",
......
{{ hostnqn }}
...@@ -200,6 +200,21 @@ ...@@ -200,6 +200,21 @@
notify: notify:
- Restart nova-compute container - Restart nova-compute container
- name: Generating 'hostnqn' file for nova_compute
vars:
hostnqn: "nqn.2014-08.org.nvmexpress:uuid:{{ ansible_facts.hostname | to_uuid }}"
service: "{{ nova_cell_services['nova-compute'] }}"
template:
src: "templates/hostnqn.j2"
dest: "{{ node_config_directory }}/nova-compute/hostnqn"
mode: "0660"
become: true
when:
- inventory_hostname in groups[service.group]
- service.enabled | bool
notify:
- Restart nova-compute container
- name: Copying over existing policy file - name: Copying over existing policy file
become: true become: true
template: template:
......
{{ hostnqn }}
...@@ -55,6 +55,12 @@ ...@@ -55,6 +55,12 @@
"owner": "nova", "owner": "nova",
"perm": "0600", "perm": "0600",
"optional": true "optional": true
},
{
"source": "{{ container_config_directory }}/hostnqn",
"dest": "/etc/nvme/hostnqn",
"owner": "root",
"perm": "0644"
}{% if nova_compute_virt_type in ['kvm', 'qemu'] and libvirt_enable_sasl | bool %}, }{% if nova_compute_virt_type in ['kvm', 'qemu'] and libvirt_enable_sasl | bool %},
{ {
"source": "{{ container_config_directory }}/auth.conf", "source": "{{ container_config_directory }}/auth.conf",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment