2022-03-08 19:42:28 +01:00
|
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
<rougail version="0.10">
|
2022-04-28 21:48:16 +02:00
|
|
|
<services>
|
|
|
|
<service name="redisclient" manage="False">
|
|
|
|
<file>/etc/pki/ca-trust/source/anchors/ca_Redis.crt</file>
|
|
|
|
<file>/etc/pki/tls/certs/redis.crt</file>
|
|
|
|
<file owner_type="variable" owner="redis_client_key_owner" mode="400">/etc/pki/tls/private/redis.key</file>
|
|
|
|
<!--file owner_type="variable" owner="redis_client_key_owner" mode="400" source="redis.pem">/etc/pki/tls/redis.pem</file-->
|
|
|
|
</service>
|
|
|
|
</services>
|
2022-03-08 19:42:28 +01:00
|
|
|
<variables>
|
|
|
|
<family name="redis" description="Redis">
|
|
|
|
<variable name="redis_client_server_domainname" type="domainname" description="Nom de domaine du serveur" mandatory="True"/>
|
|
|
|
<variable name="redis_client_username" description="Nom d'utilisateur" mandatory="True" hidden="True"/>
|
|
|
|
<variable name="redis_client_password" type="password" description="Mot de passe de connexion" mandatory="True" hidden="True"/>
|
2022-04-28 21:48:16 +02:00
|
|
|
<variable name="redis_client_key_owner" type="unix_user" description="Key owner" mandatory="True">
|
|
|
|
<value>apache</value>
|
|
|
|
</variable>
|
2022-03-08 19:42:28 +01:00
|
|
|
</family>
|
|
|
|
</variables>
|
|
|
|
<constraints>
|
|
|
|
<fill name="set_linked">
|
|
|
|
<param name="linked_server" type="variable">redis_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">redis_client</param>
|
|
|
|
<param name="linked_value" type="variable">domain_name_eth0</param>
|
|
|
|
<target>redis_client_username</target>
|
|
|
|
</fill>
|
|
|
|
<fill name="get_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">redis_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">redis_client_password</param>
|
|
|
|
<param name="dynamic" type="variable">redis_client_username</param>
|
|
|
|
<target>redis_client_password</target>
|
|
|
|
</fill>
|
|
|
|
<check name="set_linked_configuration">
|
|
|
|
<param name="linked_server" type="variable">redis_client_server_domainname</param>
|
|
|
|
<param name="linked_provider">redis_client_ip</param>
|
|
|
|
<param name="linked_value" type="variable">ip_eth0</param>
|
|
|
|
<param name="dynamic" type="variable">redis_client_username</param>
|
|
|
|
<target>redis_client_password</target>
|
|
|
|
</check>
|
|
|
|
</constraints>
|
|
|
|
</rougail>
|