Make iscsi config.yml consistent with start.yml
As part of non-lvm iscsi bugfix, changes were introduced to iscsi's start.yml. Same changes/conditions should be reflected to config.yml so container configuration is deployed on the same nodes as containers are started. TrivialFix Change-Id: Ib988df2d36983d63a3aff4226224dc5fc6064221
This commit is contained in:
parent
cac300e0c8
commit
157dc0f177
@ -23,7 +23,9 @@
|
|||||||
path: "{{ node_config_directory }}/{{ item }}"
|
path: "{{ node_config_directory }}/{{ item }}"
|
||||||
state: "directory"
|
state: "directory"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
when: inventory_hostname in groups['tgtd']
|
when:
|
||||||
|
- inventory_hostname in groups['tgtd']
|
||||||
|
- enable_cinder_backend_lvm | bool
|
||||||
with_items:
|
with_items:
|
||||||
- "tgtd"
|
- "tgtd"
|
||||||
|
|
||||||
@ -31,6 +33,8 @@
|
|||||||
template:
|
template:
|
||||||
src: "{{ item }}.json.j2"
|
src: "{{ item }}.json.j2"
|
||||||
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
||||||
when: inventory_hostname in groups['tgtd']
|
when:
|
||||||
|
- inventory_hostname in groups['tgtd']
|
||||||
|
- enable_cinder_backend_lvm | bool
|
||||||
with_items:
|
with_items:
|
||||||
- "tgtd"
|
- "tgtd"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user