Projet

Général

Profil

20_dhcp.xml

Philippe Carre, 19/02/2013 15:15

Télécharger (6,38 ko)

 
1
<?xml version="1.0" encoding="utf-8"?>
2

    
3
<creole>
4
    <files>
5
        <file filelist='tftp' name='/usr/share/eole/firewall/00_dhcp.fw'/>
6
        <file filelist='dhcp' name='/usr/share/ead2/backend/config/perms/perm_dhcp.ini' rm="True"/>
7
    </files>
8
    <containers>
9
        <container name='dhcp' id='17'>
10
            <package>dhcp-pkg</package>
11
            <service servicelist='dhcp' method='upstart'>isc-dhcp-server</service>
12
            <service servicelist='tftp'>tftpd-hpa</service>
13
            <file filelist='dhcp' name='/etc/dhcp3/dhcpd.conf'/>
14
            <file filelist='tftp' name='/etc/default/tftpd-hpa' source='tftpd-hpa.default'/>
15
        </container>
16
    </containers>
17
    <variables>
18
        <family name='services'>
19
            <variable name='activer_dhcp' type='oui/non' description="Activer DHCP" >
20
                <value>non</value>
21
            </variable>
22
            <variable name='activer_tftp' type='oui/non' description="Activer l'utilisation d'un serveur PXE/TFTP" mode='expert'>
23
              <value>non</value>
24
            </variable>
25
        </family>
26
        <family name='dhcp'>
27
            <variable name='adresse_network_dhcp' type='ip' description='Adresse réseau de la plage DHCP'/>
28
            <variable name='adresse_netmask_dhcp' type='ip' description='Adresse netmask de la plage DHCP'/>
29

    
30
            <variable name='nom_domaine_dhcp' type='string' description='Nom de domaine à renvoyer aux clients DHCP' />
31
            <variable name='adresse_ip_gw_dhcp' type='ip' description='Adresse IP du routeur à renvoyer aux clients DHCP' />
32
            <variable name='adresse_ip_dns_dhcp' type='ip' description='Adresse(s) IP de serveurs DNS à renvoyer aux clients DHCP' multi='True'/>
33
            <variable name='adresse_ip_wins_dhcp' type='string' description='Adresse(s) IP de serveurs Wins à renvoyer aux clients' multi='True' mode='expert'/>
34
            <variable name='adresse_ip_ntp_dhcp' type='string' description='Adresse(s) IP de serveurs NTP à renvoyer aux clients' multi='True' mode='expert'/>
35

    
36
            <variable name='ip_basse_dhcp' type='ip' description='IP basse de la plage DHCP' multi='True'/>
37
            <variable name='ip_haute_dhcp' type='ip' description='IP haute de la plage DHCP' />
38
            <variable name='activer_dhcp_hotes_autorises' type='oui/non' description="Autoriser cette zone aux hotes inconnus" mode='expert'>
39
                <value>oui</value>
40
                </variable>
41
                <variable name='dhcp_lease_default' type='string' description='Temps du bail par défaut (sec)' mode='expert'>
42
                        <value>36000</value>
43
                </variable>
44
            <variable name='dhcp_lease_max' type='string' description='Temps maximum du bail (sec)' mode='expert'>
45
                        <value>144000</value>
46
                </variable>
47
        </family>
48
        <!-- sur Eclair, la famille ltsp doit être avant tftp (#2819) -->
49
        <family name='ltsp'/>
50
        <family name='tftp'>
51
            <variable name='adresse_ip_tftp' type='string' description="Adresse IP du serveur PXE/TFTP" />
52
            <variable name='repertoire_tftp' type='string' description="Répertoire sur le serveur PXE/TFTP" >
53
                <value>/var/lib/tftpboot/</value>
54
            </variable>
55
            <variable name='chemin_fichier_pxe' type='string' description="Chemin vers le fichier de boot PXE initial" >
56
                <value>/pxelinux.0</value>
57
            </variable>
58
        </family>
59

    
60
        <separators>
61
            <separator name="adresse_network_dhcp">Valeurs globales</separator>        
62
            <separator name="ip_basse_dhcp">Valeurs spécifiques par plages</separator>        
63
        </separators>
64

    
65
    </variables>
66
    <constraints>
67
        <fill name='calc_val' target='nom_domaine_dhcp'>
68
            <param type='eole' name='valeur'>nom_domaine_local</param>
69
        </fill>
70
        <fill name='calc_val' target='adresse_ip_tftp'>
71
            <param type='eole' name='valeur'>adresse_ip_eth0</param>
72
        </fill>
73
        <check name='valid_ip' target='adresse_network_dhcp'/>
74
        <check name='valid_netmask' target='adresse_netmask_dhcp'/>
75
        <check name='valid_ip' target='adresse_ip_gw_dhcp'/>
76
        <check name='valid_ip' target='adresse_ip_dns_dhcp'/>
77
        <check name='valid_ip' target='adresse_ip_wins_dhcp'/>
78
        <check name='valid_ip' target='adresse_ip_ntp_dhcp'/>
79
        <check name='valid_ip' target='ip_basse_dhcp'/>
80
        <check name='valid_ip' target='ip_haute_dhcp'/>
81

    
82
        <check name='valid_networks' target='ip_basse_dhcp'>
83
            <param name='condition_1' type='eole'>adresse_network_dhcp</param>
84
                    <param name='condition_2' type='eole'>adresse_netmask_dhcp</param>
85
        </check>
86
        <check name='valid_networks' target='ip_haute_dhcp'>
87
            <param name='condition_1' type='eole'>adresse_network_dhcp</param>
88
                    <param name='condition_2' type='eole'>adresse_netmask_dhcp</param>
89
        </check>
90

    
91
        <group master='ip_basse_dhcp'>
92
            <slave>ip_haute_dhcp</slave>
93
            <slave>activer_dhcp_hotes_autorises</slave>
94
            <slave>dhcp_lease_default</slave>
95
            <slave>dhcp_lease_max</slave>
96
        </group>
97
 
98
        <condition name='hidden_if_in' source='activer_tftp'>
99
            <param>non</param>
100
            <target type='servicelist'>tftp</target>
101
            <target type='family'>tftp</target>
102
            <target type='filelist'>tftp</target>
103
        </condition>
104
        <condition name='hidden_if_in' source='activer_dhcp'>
105
            <param>non</param>
106
            <target type='filelist'>dhcp</target>
107
            <target type='servicelist'>dhcp</target>
108
            <target type='family'>dhcp</target>
109
        </condition>
110

    
111
        <check name='obligatoire' target='adresse_network_dhcp'/>
112
        <check name='obligatoire' target='adresse_netmask_dhcp'/>
113
        <check name='obligatoire' target='ip_basse_dhcp'/>
114
        <check name='obligatoire' target='ip_haute_dhcp'/>
115
        <check name='obligatoire' target='adresse_ip_gw_dhcp'/>
116
        <check name='obligatoire' target='adresse_ip_dns_dhcp'/>
117
    </constraints>
118

    
119
    <help>
120
        <variable name='activer_dhcp'>DHCP (Dynamic Host Configuration Protocol) est un protocole réseau dont le rôle est d’assurer la configuration automatique des paramètres IP d’une station</variable>
121
        <variable name='activer_tftp'>TFTP (Trivial File Transfer Protocol) est un protocole simplifié de transfert de fichiers</variable>
122
    </help>
123

    
124
</creole>
125
<!-- vim: ts=4 sw=4 expandtab
126
-->