crans_bcfg2/Python/etc/exports
2014-11-03 22:52:16 +01:00

18 lines
498 B
Text

# -*- coding: utf-8 -*-
header("""Liste des dossiers exportés par le nfs""")
import gestion.config as config
import string
import os
home_adh = list(string.ascii_lowercase) + ['logs', 'mail']
dirs = map(lambda x: os.path.join('/home-adh', x), home_adh)
dirs += ['/usr/scripts', '/home-adh']
allowed = config.NETs['adm'] + config.prefix['adm']
tpl = "%s %s(rw,async,nohide,no_subtree_check,no_root_squash)"
for dir in dirs:
for cidr in allowed:
print tpl % (dir, cidr)