bundles/samba: cannot have time machine and 'guest ok' shares on the same machine
This commit is contained in:
parent
fd1ad352d0
commit
e1548ff61e
2 changed files with 3 additions and 18 deletions
|
@ -66,6 +66,9 @@ for user, uconfig in node.metadata.get('users', {}).items():
|
||||||
if timemachine_shares:
|
if timemachine_shares:
|
||||||
assert node.has_bundle('avahi-daemon'), f'{node.name}: samba needs avahi-daemon to publish time machine shares'
|
assert node.has_bundle('avahi-daemon'), f'{node.name}: samba needs avahi-daemon to publish time machine shares'
|
||||||
|
|
||||||
|
for share, share_config in node.metadata.get('samba/shares', {}).items():
|
||||||
|
assert not share_config.get('guest_ok', True), f'{node.name} samba {share}: cannot have time machine shares and "guest ok" shares on the same machine'
|
||||||
|
|
||||||
files['/etc/avahi/services/timemachine.service'] = {
|
files['/etc/avahi/services/timemachine.service'] = {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'context': {
|
'context': {
|
||||||
|
|
|
@ -180,24 +180,6 @@ nodes['home.nas'] = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'samba': {
|
'samba': {
|
||||||
'shares': {
|
|
||||||
'C3VOC': {
|
|
||||||
'path': '/storage/nas/C3VOC',
|
|
||||||
'force_group': 'nas',
|
|
||||||
},
|
|
||||||
'TV': {
|
|
||||||
'path': '/storage/nas/TV',
|
|
||||||
'force_group': 'nas',
|
|
||||||
},
|
|
||||||
'music': {
|
|
||||||
'path': '/storage/nas/Musik',
|
|
||||||
'force_group': 'nas',
|
|
||||||
},
|
|
||||||
'music_videos': {
|
|
||||||
'path': '/storage/nas/Musikvideos',
|
|
||||||
'force_group': 'nas',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'restrict-to': {
|
'restrict-to': {
|
||||||
'172.19.138.0/24',
|
'172.19.138.0/24',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue