Admonly remplacé par nonadherent, et ajout de vlan-wif par endroits
Ignore-this: 3bf49fca4dca8c61aa0eb0dc0128e65a Une machine qui n'est pas sur vlan adhérent peut être sur d'autres vlans, on remplace adm-only par non-vlan-adherent. On ajoute aussi des trucs pour les machines sur le vlan-wifi. darcs-hash:20130117223022-afe24-5191157757322bc0718b6b564f4c7ceea86438e5.gz
This commit is contained in:
parent
f52247c194
commit
a5fe3a1778
7 changed files with 27 additions and 19 deletions
|
@ -4,11 +4,14 @@ include("ip")
|
|||
|
||||
@127.0.0.1 localhost.crans.org localhost
|
||||
|
||||
if not has('adm-only'):
|
||||
if not has("non-vlan-adherent"):
|
||||
print pubip(), pubhostname, hostname
|
||||
print admip(), admhostname
|
||||
print admip(), admhostname, hostname+".adm"
|
||||
else:
|
||||
print admip(), admhostname, hostname+".adm", hostname
|
||||
|
||||
if has("vlan-wifi"):
|
||||
print wifiip(), wifihostname, hostname+".wifi"
|
||||
@10.231.136.7 daath.adm.crans.org daath.adm daath
|
||||
if(has("komaz")):
|
||||
print "138.231.135.5 irts-ext.ens-cachan.fr irts"
|
||||
|
|
|
@ -176,7 +176,7 @@ service("ups-server",
|
|||
name="upsd",
|
||||
pidf="nut/upsd")
|
||||
|
||||
if has('adm-only'):
|
||||
if has('non-vlan-adherent'):
|
||||
vsftpd_ip = admip()
|
||||
else:
|
||||
vsftpd_ip = pubip()
|
||||
|
@ -307,3 +307,4 @@ for line in metadata.Probes["fstab_local"].splitlines():
|
|||
|
||||
print ' mode passive'
|
||||
print
|
||||
|
||||
|
|
|
@ -10,5 +10,5 @@ if has("bug-tracker"):
|
|||
|
||||
print "/^(.*)@localhost(\.crans\.org)?$/ ${1}@crans.org"
|
||||
print "/^(.*)@%s$/ ${1}@crans.org" % admhostname
|
||||
if not has("adm-only"):
|
||||
if not has("non-vlan-adherent"):
|
||||
print "/^(.*)@%s$/ ${1}@crans.org" % pubhostname
|
||||
|
|
|
@ -25,8 +25,8 @@ tracker = has("tracker")
|
|||
# Si vrai, on est sur le tracker debbugs
|
||||
bugtracker = has("bug-tracker")
|
||||
|
||||
# Si vrai, on est sur un serveur adm-only
|
||||
admonly = has("adm-only")
|
||||
# Si vrai, on est sur un serveur non-vlan-adherent
|
||||
nonadherent = has("non-vlan-adherent")
|
||||
|
||||
# La base de donnee utilise (pour les mx)
|
||||
if has("ldap"):
|
||||
|
@ -57,7 +57,7 @@ client_networks = ["138.231.136.0/21", "138.231.144.0/21", "138.231.148.0/22"]
|
|||
@# +------------------+
|
||||
|
||||
@# Definition par securite (sinon il utilise gethostname)
|
||||
if admonly:
|
||||
if nonadherent:
|
||||
myhostname = admhostname
|
||||
else:
|
||||
myhostname = pubhostname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue