1
|
<?xml version='1.0' encoding='utf-8'?>
|
2
|
|
3
|
<creole>
|
4
|
|
5
|
<files>
|
6
|
<service_access service='mysqld'>
|
7
|
<port>3306</port>
|
8
|
<tcpwrapper>mysqld</tcpwrapper>
|
9
|
</service_access>
|
10
|
|
11
|
<service_restriction service='mysqld'>
|
12
|
<ip interface='eth0' netmask='netmask_mysql_dist_eth0' netmask_type='SymLinkOption' ip_type='SymLinkOption'>ip_mysql_dist_eth0</ip>
|
13
|
<ip interface='eth1' netmask='netmask_mysql_dist_eth1' netmask_type='SymLinkOption' ip_type='SymLinkOption'>ip_mysql_dist_eth1</ip>
|
14
|
</service_restriction>
|
15
|
</files>
|
16
|
|
17
|
<containers>
|
18
|
|
19
|
</containers>
|
20
|
|
21
|
<variables>
|
22
|
|
23
|
|
24
|
<family name='Interface-0'>
|
25
|
<variable name='mysql_eth0' type='oui/non' description='Autoriser les connexions distantes au serveur MySQL' mode='expert'>
|
26
|
<value>non</value>
|
27
|
</variable>
|
28
|
<variable name='ip_mysql_dist_eth0' type='network' description="Adresse IP réseau autorisée pour les connexions distantes au serveur MYSQL" multi='True' mandatory='True'/>
|
29
|
<variable name='netmask_mysql_dist_eth0' type='netmask' description="Masque du sous réseau pour les connexions distantes au serveur MySQL" mandatory='True'/>
|
30
|
</family>
|
31
|
|
32
|
|
33
|
<family name='Interface-1'>
|
34
|
<variable name='mysql_eth1' type='oui/non' description='Autoriser les connexions distantes au serveur MySQL' mode='expert'>
|
35
|
<value>non</value>
|
36
|
</variable>
|
37
|
<variable name='ip_mysql_dist_eth1' type='network' description="Adresse IP réseau autorisée pour les connexions distantes au serveur MYSQL" multi='True' mandatory='True'/>
|
38
|
<variable name='netmask_mysql_dist_eth1' type='netmask' description="Masque du sous réseau pour les connexions distantes au serveur MySQL" mandatory='True'/>
|
39
|
</family>
|
40
|
|
41
|
<separators>
|
42
|
<separator name='mysql_eth0' never_hidden='True'>Configurer l'accès distant à MySQL</separator>
|
43
|
<separator name='mysql_eth1'>Configurer l'accès distant à MySQL</separator>
|
44
|
</separators>
|
45
|
|
46
|
</variables>
|
47
|
|
48
|
<constraints>
|
49
|
|
50
|
<condition name='disabled_if_in' source='activer_firewall'>
|
51
|
<param>non</param>
|
52
|
<target type='variable'>mysql_eth0</target>
|
53
|
<target type='variable'>mysql_eth1</target>
|
54
|
</condition>
|
55
|
<condition name='disabled_if_in' source='mysql_eth0'>
|
56
|
<param>non</param>
|
57
|
<target type='variable'>ip_mysql_dist_eth0</target>
|
58
|
<target type='variable'>netmask_mysql_dist_eth0</target>
|
59
|
</condition>
|
60
|
<check name="valid_networknetmask" target="netmask_mysql_dist_eth0">
|
61
|
<param type='eole'>ip_mysql_dist_eth0</param>
|
62
|
</check>
|
63
|
<condition name='disabled_if_in' source='mysql_eth1'>
|
64
|
<param>non</param>
|
65
|
<target type='variable'>ip_mysql_dist_eth1</target>
|
66
|
<target type='variable'>netmask_mysql_dist_eth1</target>
|
67
|
</condition>
|
68
|
<check name="valid_networknetmask" target="netmask_mysql_dist_eth1">
|
69
|
<param type='eole'>ip_mysql_dist_eth1</param>
|
70
|
</check>
|
71
|
<group master='ip_mysql_dist_eth0'>
|
72
|
<slave>netmask_mysql_dist_eth0</slave>
|
73
|
</group>
|
74
|
<group master='ip_mysql_dist_eth1'>
|
75
|
<slave>netmask_mysql_dist_eth1</slave>
|
76
|
</group>
|
77
|
</constraints>
|
78
|
|
79
|
<help>
|
80
|
|
81
|
</help>
|
82
|
|
83
|
</creole>
|