50 lines
2.4 KiB
XML
50 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<creole>
|
|
<files>
|
|
<service_access service='smbd'>
|
|
<port>139</port>
|
|
<port>445</port>
|
|
</service_access>
|
|
<service_restriction service='smbd'>
|
|
<ip interface='auto' netmask='smb_share_allowed_netmask' netmask_type='SymLinkOption' ip_type='SymLinkOption'>smb_share_allowed_network</ip>
|
|
</service_restriction>
|
|
|
|
</files>
|
|
<containers>
|
|
<container name='partage' id='52'>
|
|
<file filelist='smb_share' name='/etc/samba/smb.conf' source='eole-smb_smb.conf' mkdir='True' rm='True'/>
|
|
<package>eole-smb-pkg</package>
|
|
<service servicelist='smb_share'>smbd</service>
|
|
</container>
|
|
</containers>
|
|
<variables>
|
|
<family name='Partages smb'>
|
|
<variable name='use_smb_share' type='oui/non' description='Configurer des répertoires partagés' mode='normal'>
|
|
<value>non</value>
|
|
</variable>
|
|
<variable name='smb_share_path' type='string' description='Chemin du partage' mandatory='True' mode='normal' multi='True'/>
|
|
<variable name='smb_share_name' type='string' description='Nom du répertoire partagé' mandatory='True' mode='normal'/>
|
|
<variable name='smb_share_allowed_network' type='network' description='Adresses autorisées à se connecter aux partages' mode='normal' multi='True' mandatory='True'/>
|
|
<variable name='smb_share_allowed_netmask' type='netmask' description='Masque de sous-réseau des réseaux autorisés à se connecter aux partages' mode='normal' mandatory='True'/>
|
|
</family>
|
|
</variables>
|
|
<constraints>
|
|
<group master='smb_share_path'>
|
|
<slave>smb_share_name</slave>
|
|
</group>
|
|
<group master='smb_share_allowed_network'>
|
|
<slave>smb_share_allowed_netmask</slave>
|
|
</group>
|
|
<condition name='disabled_if_in' source='use_smb_share' fallback='True'>
|
|
<param>non</param>
|
|
<target type='variable'>smb_share_name</target>
|
|
<target type='variable'>smb_share_allowed_network</target>
|
|
<target type='variable'>smb_share_allowed_netmask</target>
|
|
<target type='filelist'>smb_share</target>
|
|
</condition>
|
|
</constraints>
|
|
<help>
|
|
<variable name='use_smb_share'>Afficher les variables permettant de configurer des partages SMB</variable>
|
|
</help>
|
|
</creole>
|