dataset/seed/mariadb-client/dictionaries/20_mariadb.yml

63 lines
1.5 KiB
YAML

---
version: 1.1
mariadb: # MariaDB
client: # MariaDB client
server_domainname:
type: domainname
supplier: MariaDB
hidden: true
server_ip:
type: ip
hidden: true
default:
jinja: >-
{{ zones | get_ip(_.server_domainname) }}
params:
zones:
information: zones
username:
description: Database username
supplier: MariaDB:username
hidden: true
default:
jinja: >-
{{ general.network.server_name | normalize_family }}
password:
type: secret
description: Database password
hidden: true
supplier: MariaDB:password
default:
jinja: >-
{% set server_name=_.server_domainname %}
{{ _.address | get_password(server_name=server_name,
description="remote",
type="cleartext",
hide=general.hide_secret)
}}
database:
description: Database name
hidden: true
supplier: MariaDB:database
default:
variable: _.username
address:
hidden: true
default:
jinja: >-
{{ _.server_ip | get_client_address(domain_name, network) }}
params:
network:
variable: >-
general.network.interface_{{ suffix }}.network
domain_name:
variable: >-
general.network.interface_{{ suffix }}.domain_name