bundles/nfs-server: support using node names for shares
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
f84e9c533f
commit
faf27a3940
3 changed files with 12 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
% for path, shares in sorted(node.metadata['nfs-server']['shares'].items()):
|
||||
${path} ${' '.join(sorted(shares))}
|
||||
% for share_target, share_options in sorted(shares.items()):
|
||||
% for ip_list in repo.libs.tools.resolve_identifier(repo, share_target).values():
|
||||
% for ip in sorted(ip_list):
|
||||
${path} ${ip}(${share_options})
|
||||
% endfor
|
||||
% endfor
|
||||
% endfor
|
||||
% endfor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue