97 lines
3.8 KiB
XML
97 lines
3.8 KiB
XML
<creole>
|
|
<files>
|
|
<file filelist='dbCluster' name='/etc/mysql/conf.d/galera.cnf' rm='True' mkdir='True'>
|
|
<service_access service='mariadb'>
|
|
<port service_accesslist='mariadb' protocol='tcp'>3306</port>
|
|
<tcpwrapper service_accesslist='mariadb'>mariadb</tcpwrapper>
|
|
</service_access>
|
|
<service_access service='galera'>
|
|
<port service_accesslist='dbCluster' protocol='tcp'>4444</port>
|
|
<port service_accesslist='dbCluster' protocol='tcp'>4567</port>
|
|
<port service_accesslist='dbCluster' protocol='tcp'>4568</port>
|
|
<port service_accesslist='dbCluster' protocol='udp'>4567</port>
|
|
<tcpwrapper service_accesslist='mariadb'>mariadb</tcpwrapper>
|
|
</service_access>
|
|
|
|
<service_restriction service='mariadb'>
|
|
<ip interface='ifMariaDBLimit' interface_type="SymLinkOption" netmask='maskMariaDBLimit' netmask_type='SymLinkOption' ip_type='SymLinkOption'>ipMariaDBLimit</ip>
|
|
</service_restriction>
|
|
|
|
<service_restriction service='galera'>
|
|
<ip interface='ifDBCluster' interface_type="SymLinkOption" netmask='maskDBCluster' netmask_type='SymLinkOption' ip_type='SymLinkOption'>ipDBCluster</ip>
|
|
</service_restriction>
|
|
</files>
|
|
<variables>
|
|
<family name="Services">
|
|
<variable namle="dbEnable" type='oui/non' description='Activer le serveur de base de données MariaDB'>
|
|
<value>non</non>
|
|
</variable>
|
|
</family>
|
|
<family name="DataBase">
|
|
<variable name='dbEnableClustter' type='oui/non' description="Activer la mise en grappe MariaDB Galera ?">
|
|
<value>non</value>
|
|
</variable>
|
|
<variable name="dbCreateFixAdmin" type='oui/non' description="Créer des comptes admin mysql avec un mot de passe fixe"/>
|
|
<variable name="accName" type='string' description="Nom du compte" multi="True"/>
|
|
<variable name="accLimits" type='string' description="Limiter les accès des comptes">
|
|
<value>Default</value>
|
|
</variable>
|
|
<variable name="accLimitTarget" type="string" description="Restriction d'accès à ces IP/noms d'hôtes (liste séparateur séparateur ',')" />
|
|
</family>
|
|
<family name="Database Cluster">
|
|
<variable name='ifDBCluster' type='string' description="Interface réseau dédiée à la grappe BDD"/>
|
|
<variable name='dbClusterMember' type='String' description="Membre de la grappe BDD"/>
|
|
<variable name='dbClusterMemberIP' type='ip' description="Adresse IP"/>
|
|
</family>
|
|
<separators>
|
|
<separator name='dbCreateFixAdmin'>Comptes d'administration supplémentaires</separator>
|
|
</separators>
|
|
</variables>
|
|
<constraints>
|
|
<check name='valid_enum' target='ifDBCluster'>
|
|
<param>['eth0', 'eth1', 'eth2', 'eth3', 'eth4']</param>
|
|
</check>
|
|
|
|
<group master='dbClusterMember'>
|
|
<slave>dbClusterMemeberIP</slave>
|
|
</group>
|
|
|
|
<check name='valid_enum' target='accLimits'>
|
|
<param>['Default','Custom']</param>
|
|
</check>
|
|
|
|
<group master='accName'>
|
|
<slave>accLimits</slave>
|
|
<slave>accLimitTarget</slave>
|
|
</group>
|
|
|
|
<fill name='calc_multi_condition' target='accLimitTarget'>
|
|
<param>Default</param>
|
|
<param type='eole' name='condition_1'>accLimits</param>
|
|
<param name='default_match'>Default</param>
|
|
<param name='mismatch'>""</param>
|
|
</fill>
|
|
|
|
<condition name='disabled_if_in' source="dbCreateFixAdmin">
|
|
<param>non</param>
|
|
<target type='variable'>accName</target>
|
|
<target type='variable'>accLimits</target>
|
|
<target type='variable'>accLimitTarget</target>
|
|
</condition>
|
|
|
|
<condition name='disabled_if_in' source="dbEnableCluster">
|
|
<param>non</param>
|
|
<target type='family'>Database Cluster</target>
|
|
<target type='service_accesslist'>dbCluster</target>
|
|
</condition>
|
|
|
|
<condition name='disabled_if_in' source="dbEnable">
|
|
<param>non</param>
|
|
<target type='family'>Database Cluster</target>
|
|
<target type='family'>Database</target>
|
|
<target type='service_accesslist'>dbCluster</target>
|
|
</condition>
|
|
</constraints>
|
|
<help/>
|
|
</creole>
|