
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
14 lines
421 B
Python
14 lines
421 B
Python
# -*- mode: python; coding: utf-8 -*-
|
|
|
|
include("ip")
|
|
|
|
print "# Fichier Gere par Bcfg2, tout changement local sera ecrase !"
|
|
|
|
if has("bug-tracker"):
|
|
# On ne sait jamais
|
|
@/^(.*)@bugs.crans.org$/ ${1}@bugs.crans.org
|
|
|
|
print "/^(.*)@localhost(\.crans\.org)?$/ ${1}@crans.org"
|
|
print "/^(.*)@%s$/ ${1}@crans.org" % admhostname
|
|
if not has("non-vlan-adherent"):
|
|
print "/^(.*)@%s$/ ${1}@crans.org" % pubhostname
|