crans_bcfg2/Python/etc/fstab
Pierre-Elliott Bécue 9734b7f2ed [NFS] On régularise un peu ce qu'il y a dans bcfg2, et on vire fx
Ignore-this: e5bb59e0b7ff8ec910e59d9c952c9118

darcs-hash:20120808201010-b6762-adb907150b3dc37de41ffe717887d430c6d94e97.gz
2012-08-08 22:10:10 +02:00

23 lines
769 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("daath.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("fx.adm.crans.org:/home-adh", "/home", "nfs", ["rw"]);