From d90db74dcbce3565914d98adef1e43eb784d11ba Mon Sep 17 00:00:00 2001 From: Olivier Huber Date: Tue, 14 Apr 2009 00:00:00 +0200 Subject: [PATCH] =?UTF-8?q?[./gestion/gen=5Fconfs/dhcpd.py]=20Certains=20s?= =?UTF-8?q?ervices=20ne=20sont=20pas=20accessibles=20=C3=A0=20tous?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20090413220000-8fbb1-2e52f1b4ace4f91a09a82ed3c5347d51e4736eeb.gz --- gestion/gen_confs/dhcpd.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/gestion/gen_confs/dhcpd.py b/gestion/gen_confs/dhcpd.py index 8dfb3f89..de7078ba 100644 --- a/gestion/gen_confs/dhcpd.py +++ b/gestion/gen_confs/dhcpd.py @@ -65,8 +65,11 @@ option option-119 code 119 = text ; """option routers 138.231.148.1; option domain-name-servers 138.231.148.1; option domain-name "crans.org"; - option option-119 "crans.org wifi.crans.org";""" - } + option option-119 "crans.org wifi.crans.org"; + option time-servers 138.231.136.3; + option ntp-servers 138.231.136.3; + option smtp-server 138.231.136.3;"""} + elif hostname == 'rouge': reseaux = { '138.231.136.0/21' : """authoritative; @@ -74,7 +77,11 @@ option option-119 code 119 = text ; option domain-name-servers 138.231.136.9, 138.231.136.10, 138.231.136.3; option domain-name "crans.org"; option option-119 "crans.org wifi.crans.org"; - filename "pxelinux.0";""" } + filename "pxelinux.0"; + option time-servers 138.231.136.3; + option ntp-servers 138.231.136.3; + option smtp-server 138.231.136.3;""" } + elif hostname == 'titanic': reseaux = {'10.2.9.0/24' : """authoritative; @@ -88,9 +95,6 @@ subnet %(network)s netmask %(netmask)s { option subnet-mask %(netmask)s; option broadcast-address %(broadcast)s; %(OPTIONS_RESEAU)s - option time-servers 138.231.136.3; - option ntp-servers 138.231.136.3; - option smtp-server 138.231.136.3; option ip-forwarding off; deny unknown-clients; %(HOSTs)s