[PXE+dnsmasq+dhcp+feteduspli] Backup d'ytrap-llatsni
* Il manque peut-être des choses, j'ai pas pu finir de vérifier.
This commit is contained in:
parent
134d95af8d
commit
69c147aa3f
14 changed files with 1491 additions and 5 deletions
|
@ -11,6 +11,8 @@ header("Configuration dhcp de %s" % admhostname)
|
|||
include("ip")
|
||||
import config.dns
|
||||
|
||||
instpar = has('ytrap-llatsni')
|
||||
|
||||
print """
|
||||
#
|
||||
# Sample configuration file for ISC dhcpd for Debian
|
||||
|
@ -24,9 +26,8 @@ print """
|
|||
# have support for DDNS.)
|
||||
ddns-update-style none;
|
||||
|
||||
|
||||
include "/etc/dhcp3/omapi.conf";
|
||||
|
||||
if not instpar:
|
||||
include "/etc/dhcp3/omapi.conf";
|
||||
|
||||
# option definitions common to all supported networks...
|
||||
option option-252 code 252 = text ;
|
||||
|
@ -39,12 +40,18 @@ option interface-mtu 1496;
|
|||
# network, the authoritative directive should be uncommented.
|
||||
#authoritative;
|
||||
|
||||
if instpar:
|
||||
print """
|
||||
# If this DHCP server is the official DHCP server for the local
|
||||
# network, the authoritative directive should be uncommented.
|
||||
authoritative;"""
|
||||
|
||||
# Use this to send dhcp log messages to a different log file (you also
|
||||
# have to hack syslog.conf to complete the redirection).
|
||||
log-facility local7;
|
||||
|
||||
|
||||
include "/etc/dhcp3/dhcp-failover.conf";"""
|
||||
if not instpar:
|
||||
include "/etc/dhcp3/dhcp-failover.conf";"""
|
||||
|
||||
if has("vlan-radin"):
|
||||
print """
|
||||
|
@ -178,3 +185,14 @@ subnet 10.2.9.0 netmask 255.255.255.0 {
|
|||
}
|
||||
""" % ', '.join(config.dns.recursiv['personnel-ens'])
|
||||
|
||||
if has("vlan-evenementiel"):
|
||||
print """
|
||||
subnet 10.231.137.0 netmask 255.255.255.0 {
|
||||
range 10.231.137.20 10.231.137.254;
|
||||
next-server 10.231.137.1;
|
||||
# Options pour le PXE
|
||||
option root-path "/";
|
||||
# Fichier a charger pour le boot par le reseau
|
||||
filename "pxelinux.0";
|
||||
}
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue