74c85cfe82
When the iscsid containers is included in the kolla deployment it starts successfully on a compute node but fails to start on a storage node, if cinder is enabled because the config file is not copied to the container BTW, if cinder is not enabled the iscsid container starts successfully on both the compute and storage nodes. Change-Id: I665535d858affebc9623b29f79c89c18f7cc399f Closes-Bug: #1629381
37 lines
1003 B
YAML
37 lines
1003 B
YAML
---
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
when: inventory_hostname in groups['compute'] or
|
|
inventory_hostname in groups['storage']
|
|
with_items:
|
|
- "iscsid"
|
|
|
|
- name: Copying over config.json files for services
|
|
template:
|
|
src: "{{ item }}.json.j2"
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
when: inventory_hostname in groups['compute'] or
|
|
inventory_hostname in groups['storage']
|
|
with_items:
|
|
- "iscsid"
|
|
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
when: inventory_hostname in groups['tgtd']
|
|
with_items:
|
|
- "tgtd"
|
|
|
|
- name: Copying over config.json files for services
|
|
template:
|
|
src: "{{ item }}.json.j2"
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
when: inventory_hostname in groups['tgtd']
|
|
with_items:
|
|
- "tgtd"
|