bundles/nfs-server: introduce
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-11-12 19:59:02 +01:00
parent 5b1b7241b7
commit 2274e7aa37
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,3 @@
% for path, shares in node.metadata['nfs-server']['shares'].items():
${path} ${' '.join(sorted(shares))}
% endfor

View file

@ -0,0 +1,15 @@
files = {
'/etc/exports': {
'content_type': 'mako',
'triggers': {
'action:nfs_reload_shares',
},
},
}
actions = {
'nfs_reload_shares': {
'command': 'exportfs -a',
'triggered': True,
},
}

View file

@ -0,0 +1,7 @@
defaults = {
'apt': {
'packages': {
'nfs-kernel-server': {}
},
},
}