TT#123200 Don't check ngcpcfg-share on non-mgmt node

This directory is supposed to exists only on mgmt nodes.

Change-Id: I26230782990b454eff6044cc24b09c99296ed97c
mr9.5.2
Mykola Malkov 4 years ago
parent c6fbdc2f05
commit fae6649ced

@ -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

Loading…
Cancel
Save