From fae6649cedcf0af5af9da019f359b8664ae250cf Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Tue, 8 Jun 2021 17:19:41 +0300 Subject: [PATCH] TT#123200 Don't check ngcpcfg-share on non-mgmt node This directory is supposed to exists only on mgmt nodes. Change-Id: I26230782990b454eff6044cc24b09c99296ed97c --- templates/131_filesys-ngcp-pro.yaml.tt2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/131_filesys-ngcp-pro.yaml.tt2 b/templates/131_filesys-ngcp-pro.yaml.tt2 index a6eb636..ce9e0fa 100644 --- a/templates/131_filesys-ngcp-pro.yaml.tt2 +++ b/templates/131_filesys-ngcp-pro.yaml.tt2 @@ -1,3 +1,8 @@ +[% + hostname = ngcp.get_hostname(); + + is_mgmt = ngcp.has_role(hostname, 'mgmt'); +-%] file: /etc/ngcp-config/shared-files: @@ -90,7 +95,7 @@ file: filetype: symlink /mnt/glusterfs/ngcpcfg-share: - exists: true + exists: [% is_mgmt ? 'true' : 'false' %] mode: "0700" owner: root group: root