dataset/seed/redis-client/dictionaries/23_redis.xml
2023-07-31 15:30:32 +02:00

33 lines
1.7 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="redis-client" target="risotto" engine="ansible">
<certificate authority="Redis" owner="redis_client_key_owner" owner_type="variable" server="redis_client_server_domainname">redis</certificate>
</service>
</services>
<variables>
<family name="redis" description="Redis">
<variable name="redis_client_server_domainname" type="domainname" description="Nom de domaine du serveur Redis" mandatory="True" supplier="Redis"/>
<variable name="redis_client_username" description="Nom d'utilisateur" mandatory="True" supplier="Redis:username"/>
<variable name="redis_client_password" type="password" description="Mot de passe de connexion" mandatory="True" supplier="Redis:password"/>
<variable name="redis_client_index" type="number" description="Redis index" mandatory='True' provider="Redis:index"/>
<variable name="redis_client_key_owner" type="unix_user" description="Key owner" mandatory="True" hidden="True">
<value>apache</value>
</variable>
</family>
</variables>
<constraints>
<fill name="normalize_family">
<param type="variable">domain_name_eth0</param>
<target>redis_client_username</target>
</fill>
<fill name="get_password">
<param name="server_name" type="variable">redis_client_server_domainname</param>
<param name="username" type="variable">domain_name_eth0</param>
<param name="description">redis</param>
<param name="type">cleartext</param>
<param name="hide" type="variable">hide_secret</param>
<target>redis_client_password</target>
</fill>
</constraints>
</rougail>