forked from stove/dataset
fix(redis): install redis and link to client
This commit is contained in:
parent
cc533f69bb
commit
532f20faf4
2 changed files with 33 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
PKG="$PKG redis"
|
32
seed/redis/extras/accounts/00_accounts.xml
Normal file
32
seed/redis/extras/accounts/00_accounts.xml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<?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="client_" type="domainname" mandatory="True" supplier="RedisClient"/>
|
||||||
|
<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="RedisClient:index"/>
|
||||||
|
</family>
|
||||||
|
</variables>
|
||||||
|
<constraints>
|
||||||
|
<fill name="calc_value">
|
||||||
|
<param type="suffix"/>
|
||||||
|
<target>accounts.remote_.client_</target>
|
||||||
|
</fill>
|
||||||
|
<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>
|
Loading…
Reference in a new issue