[config,gen_confs] gordon est le nouveau routeur wifi

darcs-hash:20091109025048-bd074-5097aaa6617c1278171ee4693f47cb79e60eb2bf.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-11-09 03:50:48 +01:00
parent 9f97ac091b
commit 61d31e04a0
3 changed files with 11 additions and 1 deletions

View file

@ -42,7 +42,7 @@ cimetiere = '/home/cimetiere'
## Adresses mac utiles ## Adresses mac utiles
mac_komaz = '00:19:BB:31:3B:80' mac_komaz = '00:19:BB:31:3B:80'
mac_wifi = '00:e0:81:58:d1:39' mac_wifi = '00:0f:1f:66:e0:e8'
mac_titanic = 'aa:73:65:63:6f:76' mac_titanic = 'aa:73:65:63:6f:76'
## Serveur principal de bcfg2 ## Serveur principal de bcfg2

View file

@ -28,6 +28,9 @@ class dhcp(gen_config) :
elif hostname == 'titanic': elif hostname == 'titanic':
restart_cmd = '/etc/init.d/dhcp3-server restart' restart_cmd = '/etc/init.d/dhcp3-server restart'
reseaux = { '10.2.9.0/24' : '/etc/dhcp3/generated/appartements.liste' } reseaux = { '10.2.9.0/24' : '/etc/dhcp3/generated/appartements.liste' }
elif hostname == 'gordon':
restart_cmd = '/etc/init.d/dhcp3-server restart'
reseaux = { '138.231.144.0/21' : '/etc/dhcp3/generated/wifi.liste' }
host_template = """ host_template = """
host %(nom)s { host %(nom)s {

View file

@ -289,6 +289,13 @@ class ragnarok(base_reconfigure):
from gen_confs.droits import droits_openbsd from gen_confs.droits import droits_openbsd
self._do(droits_openbsd()) self._do(droits_openbsd())
class gordon(base_reconfigure) :
def dhcp(self):
from gen_confs.dhcpd_new import dhcp
self._do(dhcp(), self._machines())
class vert(base_reconfigure): class vert(base_reconfigure):
def home(self, args): def home(self, args):
from adherents import home from adherents import home