eole-smb/dicos/50_smb.xml

35 lines
1.4 KiB
XML
Raw Normal View History

2021-06-14 10:54:13 +02:00
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
</files>
<containers>
<container name='partage'>
<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='expert'>
<value>non</value>
</variable>
<variable name='smb_share_name' type='string' description='Nom du répertoire partagé' mandatory='True' mode='expert' multi='True'/>
<variable name='smb_share_path' type='string' description='Chemin du partage' mandatory='True' mode='expert'/>
</family>
</variables>
<constraints>
<group master='smb_share_name'>
<slave>smb_share_path</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='filelist'>smb_share</target>
</condition>
</constraints>
<help>
<variable name='use_smb_share'>Afficher les variables permettant de configurer des partages SMB</variable>
</help>
</creole>