crans_bcfg2/Python/etc/hosts
Pierre-Elliott Bécue a5fe3a1778 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
2013-01-17 23:30:22 +01:00

31 lines
890 B
Python

# -*- coding: utf-8; mode: python -*-
include("ip")
@127.0.0.1 localhost.crans.org localhost
if not has("non-vlan-adherent"):
print pubip(), pubhostname, hostname
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"
print "138.231.135.6 komaz-ext"
print "138.231.136.9 sable.crans.org sable"
print "138.231.136.98 charybde.crans.org charybde"
if(has("dom0")):
print "10.231.136.36 nols.adm.crans.org nols.adm nols"
@# The following lines are desirable for IPv6 capable hosts
@::1 ip6-localhost ip6-loopback
@fe00::0 ip6-localnet
@ff00::0 ip6-mcastprefix
@ff02::1 ip6-allnodes
@ff02::2 ip6-allrouters
@ff02::3 ip6-allhosts