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
(cherry picked from commit cc2e3743bf)
This commit is contained in:
Duong Ha-Quang 2018-01-02 14:53:34 +07:00 committed by zhongshengping
parent bfd6cb7ad8
commit 93329c2c49
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@
template:
src: "{{ item }}"
dest: "{{ node_config_directory }}/cinder-volume/nfs_shares"
when:
- inventory_hostname in groups[cinder_services["cinder-volume"]["group"]]
with_first_found:
- files:
- "{{ node_custom_config }}/nfs_shares.j2"