formations/content/modules_eole_envole/exemple.xml

41 lines
1.7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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 linterface par défaut de vnStat' mandatory='True' multi='True'/>
<variable name='vnstat_user' type='unix_user' description='Nom dutilisateur' 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>