Skip to content
Snippets Groups Projects
Commit cc2e3743 authored by Duong Ha-Quang's avatar Duong Ha-Quang
Browse files

Prevent cinder conf from copy nfs_shares to unrelated nodes

Prevent cinder conf from copy nfs_shares to all nodes instead of
just cinder-volume.

Change-Id: I4f94b6c0ca8b628c1babee7fff0b66fb5a8df257
Closes-Bug: #1713010
parent 89d5a24a
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,8 @@ ...@@ -87,6 +87,8 @@
template: template:
src: "{{ item }}" src: "{{ item }}"
dest: "{{ node_config_directory }}/cinder-volume/nfs_shares" dest: "{{ node_config_directory }}/cinder-volume/nfs_shares"
when:
- inventory_hostname in groups[cinder_services["cinder-volume"]["group"]]
with_first_found: with_first_found:
- files: - files:
- "{{ node_custom_config }}/nfs_shares.j2" - "{{ node_custom_config }}/nfs_shares.j2"
......
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