Conf d'autofs
darcs-hash:20080209200550-41f88-347594610d1088e139c82e2d26bf04b10ddf58e8.gz
This commit is contained in:
parent
00651a87e5
commit
4f142bff4c
6 changed files with 33 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
<Bundle name="autofs" version="2.0" revision="$Rev$"
|
<Bundle name="autofs">
|
||||||
origin="$URL$">
|
|
||||||
<ConfigFile name="/etc/auto.master"/>
|
<ConfigFile name="/etc/auto.master"/>
|
||||||
<ConfigFile name="/etc/auto.home"/>
|
<ConfigFile name="/etc/auto.home"/>
|
||||||
<Package name="autofs"/>
|
<Package name="autofs"/>
|
||||||
|
<Service name="autofs"/>
|
||||||
</Bundle>
|
</Bundle>
|
||||||
|
|
5
Cfg/etc/auto.home/auto.home
Executable file
5
Cfg/etc/auto.home/auto.home
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Fichier gere par BCfg2.
|
||||||
|
|
||||||
|
exec echo "-fstype=nfs nfs.adm.crans.org:/home/$1"
|
3
Cfg/etc/auto.home/info.xml
Normal file
3
Cfg/etc/auto.home/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<FileInfo>
|
||||||
|
<Info owner='root' group='root' perms='0755'/>
|
||||||
|
</FileInfo>
|
|
@ -172,7 +172,8 @@
|
||||||
|
|
||||||
<Group name="home"
|
<Group name="home"
|
||||||
comment="montage automatique des homes">
|
comment="montage automatique des homes">
|
||||||
<!-- TODO: a implementer -->
|
<Group name="autofs"/>
|
||||||
|
<Group name="nfs"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group name="mail"
|
<Group name="mail"
|
||||||
|
@ -396,6 +397,16 @@
|
||||||
<Bundle name="bind"/>
|
<Bundle name="bind"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
|
<Group name="autofs"
|
||||||
|
comment="Montage automatique des homes"
|
||||||
|
category="home-backend">
|
||||||
|
<Bundle name="autofs"/>
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<Group name="nfs">
|
||||||
|
<Bundle name="nfs"/>
|
||||||
|
</Group>
|
||||||
|
|
||||||
<!-- +======================+ -->
|
<!-- +======================+ -->
|
||||||
<!-- | Connexion de secours | -->
|
<!-- | Connexion de secours | -->
|
||||||
<!-- +======================+ -->
|
<!-- +======================+ -->
|
||||||
|
|
9
Python/etc/auto.master
Normal file
9
Python/etc/auto.master
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# -*- coding: utf-8; mode: python -*-
|
||||||
|
|
||||||
|
header("Définition des points de montage pour autofs.")
|
||||||
|
|
||||||
|
def mount(mntpoint, script):
|
||||||
|
print mntpoint, script
|
||||||
|
|
||||||
|
if has("home"):
|
||||||
|
mount("/home", "/etc/auto.home")
|
|
@ -40,6 +40,8 @@
|
||||||
|
|
||||||
<Service name="ssh" status="on"/>
|
<Service name="ssh" status="on"/>
|
||||||
|
|
||||||
|
<Service name="autofs" status="on"/>
|
||||||
|
|
||||||
<!-- Suppression du groupe adm de /etc/group pour forcer sudo à regarder dans la base -->
|
<!-- Suppression du groupe adm de /etc/group pour forcer sudo à regarder dans la base -->
|
||||||
<Action name="del-adm"
|
<Action name="del-adm"
|
||||||
timing="post" when="modified" status="check"
|
timing="post" when="modified" status="check"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue