forked from stove/dataset
52 lines
1 KiB
YAML
52 lines
1 KiB
YAML
|
---
|
||
|
version: 1.1
|
||
|
|
||
|
remotes:
|
||
|
description: Create account and connexion to a Redis server
|
||
|
type: domainname
|
||
|
multi: true
|
||
|
hidden: true
|
||
|
provider: Redis
|
||
|
|
||
|
"remote_{{ suffix }}":
|
||
|
dynamic:
|
||
|
variable: accounts.remotes
|
||
|
hidden: true
|
||
|
|
||
|
ip:
|
||
|
type: ip
|
||
|
default:
|
||
|
jinja: >-
|
||
|
{{ zones | get_ip(suffix) }}
|
||
|
params:
|
||
|
zones:
|
||
|
information: zones
|
||
|
suffix:
|
||
|
type: suffix
|
||
|
|
||
|
username:
|
||
|
description: 'Redis user name for '
|
||
|
provider: Redis:username
|
||
|
|
||
|
password:
|
||
|
description: 'Redis password for '
|
||
|
type: secret
|
||
|
provider: Redis:password
|
||
|
|
||
|
index:
|
||
|
type: number
|
||
|
validators:
|
||
|
# see https://github.com/redis/redis/issues/8099#issuecomment-741868975
|
||
|
- jinja: >-
|
||
|
{%- if _.index -%}
|
||
|
Redis only works for one service
|
||
|
{%- endif -%}
|
||
|
default:
|
||
|
jinja: >-
|
||
|
{{ accounts.remotes.index(suffix) }}
|
||
|
params:
|
||
|
suffix:
|
||
|
type: suffix
|
||
|
description: get current index
|
||
|
supplier: Redis:index
|