dataset/seed/redis/extras/accounts/00_accounts.xml
2023-07-31 15:30:32 +02:00

27 lines
1.1 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<variables>
<variable name="remotes" type="domainname" provider="Redis" mandatory="True" multi="True" hidden="True"/>
<family name="remote_" dynamic="accounts.remotes">
<variable name="ip_" type="ip" mandatory="True"/>
<variable name="username_" hidden="True" mandatory="True" provider="Redis:username"/>
<variable name="password_" hidden="True" type="password" mandatory="True" provider="Redis:password"/>
<variable name="index_" hidden="True" type="number" mandatory="True" supplier="Redis:index"/>
</family>
</variables>
<constraints>
<fill name="get_ip">
<param type="information">zones</param>
<param type="suffix"/>
<target>accounts.remote_.ip_</target>
</fill>
<fill name="redis_index_of">
<param type="variable">accounts.remotes</param>
<param type="suffix"/>
<target>accounts.remote_.index_</target>
</fill>
<check name="redis_only_one">
<target>accounts.remote_.index_</target>
</check>
</constraints>
</rougail>