crans_bcfg2/Python/etc/fstab
Antoine Durand-Gasselin 7601daa341 [bcfg2] ajout de owl.crans.org et asterisk.crans.org
darcs-hash:20090313081505-bd074-b43606c63f11cb48ddeae987f6a122e7dad02477.gz
2009-03-13 09:15:05 +01:00

23 lines
764 B
Python

# -*- coding: utf-8; mode: python -*-
header("Les modifications locales sont à placer dans le fichier /etc/fstab.local")
def mnt(fs, mntpoint, type, options=[], dump=0, pass_=0):
print ("%s %s %s %s %d %d" %
(fs, mntpoint, type,
(options and ",".join(options)) or "defaults",
dump, pass_))
@# Les définitions classiques
mnt("proc", "/proc", "proc")
mnt("shm", "/dev/shm", "tmpfs")
@# Les définitions locales
print metadata.probes["fstab_local"]
if has("nfs"):
@# Le nfs
mnt("nfs.adm.crans.org:/usr/scripts", "/usr/scripts", "nfs", ["rw"])
if has("home-permanent"):
# Pour ceux qui accèdent beaucoup aux homes on monte tout le /home
mnt("nfs.adm.crans.org:/home", "/home", "nfs", ["rw"]);