41 lines
1.7 KiB
XML
41 lines
1.7 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
|||
|
<creole>
|
|||
|
<files>
|
|||
|
<file filelist='vnstat' name='etc/vnstat.conf'/>
|
|||
|
<service servicelist='vnstat'>vnstat</service>
|
|||
|
<service_access service='vnstat'>
|
|||
|
<port>8888</port>
|
|||
|
<tcpwrapper>vnstat</tcpwrapper>
|
|||
|
</service_access>
|
|||
|
<service_restriction service='vnstat'>
|
|||
|
<ip interface='auto' netmask='255.255.255.0'>192.168.56.101</ip>
|
|||
|
</service_restriction>
|
|||
|
</files>
|
|||
|
<variables>
|
|||
|
<family name='services'>
|
|||
|
<variable name='activer_vnstat' type='oui/non' description='Activer le service vnStat'>
|
|||
|
<value>oui</value>
|
|||
|
</variable>
|
|||
|
</family>
|
|||
|
<family name='vnstat'>
|
|||
|
<variable name='vnstat_interface' type='string' description='Numéro de l’interface par défaut de vnStat' mandatory='True' multi='True'/>
|
|||
|
<variable name='vnstat_user' type='unix_user' description='Nom d’utilisateur' mode='expert'/>
|
|||
|
<variable name='vnstat_group' type='unix_user' description='Nom du groupe' mode='expert'/>
|
|||
|
</family>
|
|||
|
</variables>
|
|||
|
<constraints>
|
|||
|
<check name='valid_enum' target='vnstat_interface'>
|
|||
|
<param>['0', '1', '2', '3', '4']</param>
|
|||
|
</check>
|
|||
|
<fill name='calc_val' target='vnstat_group'>
|
|||
|
<param type='eole' name='valeur'>vnstat_user</param>
|
|||
|
</fill>
|
|||
|
<condition name='disabled_if_in' source='activer_vnstat'>
|
|||
|
<param>non</param>
|
|||
|
<target type='family'>vnstat</target>
|
|||
|
<target type='filelist'>vnstat</target>
|
|||
|
<target type='servicelist'>vnstat</target>
|
|||
|
</condition>
|
|||
|
</constraints>
|
|||
|
</creole>
|