2021-06-14 10:54:13 +02:00
<?xml version="1.0" encoding="utf-8"?>
<creole >
<files >
2021-06-18 09:06:24 +02:00
<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>
2021-06-14 10:54:13 +02:00
</files>
<containers >
2021-06-15 09:56:01 +02:00
<container name= 'partage' id= '52' >
2021-06-14 10:54:13 +02:00
<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' >
2021-06-18 09:06:24 +02:00
<variable name= 'use_smb_share' type= 'oui/non' description= 'Configurer des répertoires partagés' mode= 'normal' >
2021-06-14 10:54:13 +02:00
<value > non</value>
</variable>
2021-06-18 09:35:11 +02:00
<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' />
2021-06-18 09:06:24 +02:00
<variable name= 'smb_share_allowed_network' type= 'network' description= 'Adresses autorisées à se connecter aux partages' mode= 'normal' multi= 'True' mandatory= 'True' />
2021-06-18 09:30:59 +02:00
<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' />
2021-06-14 10:54:13 +02:00
</family>
</variables>
<constraints >
2021-06-18 09:06:24 +02:00
<group master= 'smb_share_path' >
<slave > smb_share_name</slave>
</group>
<group master= 'smb_share_allowed_network' >
<slave > smb_share_allowed_netmask</slave>
2021-06-14 10:54:13 +02:00
</group>
<condition name= 'disabled_if_in' source= 'use_smb_share' fallback= 'True' >
<param > non</param>
<target type= 'variable' > smb_share_name</target>
2021-06-18 09:06:24 +02:00
<target type= 'variable' > smb_share_allowed_network</target>
<target type= 'variable' > smb_share_allowed_netmask</target>
2021-06-14 10:54:13 +02:00
<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>