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

46 lines
2.1 KiB
XML
Raw Normal View History

2022-03-08 19:42:28 +01:00
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
2022-04-28 21:48:16 +02:00
<services>
2023-06-23 08:12:05 +02:00
<service name="mariadbclient" target="risotto" engine="ansible"/>
2022-04-28 21:48:16 +02:00
</services>
2022-03-08 19:42:28 +01:00
<variables>
<family name="mariadb" description="MariaDB">
2022-08-18 10:19:43 +02:00
<variable name="mariadb_client_server_domainname" type="domainname" description="Nom de domaine du serveur MariaDB" mandatory="True" supplier="MariaDB"/>
2023-06-23 08:12:05 +02:00
<variable name="mariadb_client_server_ip" type="ip" hidden="True"/>
<variable name="mariadb_client_username" description="Database username" mandatory="True" hidden="True" supplier="MariaDB:username"/>
2022-08-18 10:19:43 +02:00
<variable name="mariadb_client_password" type="secret" description="Database password" mandatory="True" hidden="True" supplier="MariaDB:password"/>
2023-06-23 08:12:05 +02:00
<variable name="mariadb_client_database" description="Database name" mandatory="True" hidden="True" supplier="MariaDB:database"/>
<variable name='mariadb_client_address' hidden="True"/>
2022-03-08 19:42:28 +01:00
</family>
</variables>
<constraints>
2023-06-23 08:12:05 +02:00
<fill name="get_ip">
<param type="information">zones</param>
<param type="variable">mariadb_client_server_domainname</param>
<target>mariadb_client_server_ip</target>
</fill>
<fill name="get_client_address">
<param type='variable'>mariadb_client_server_ip</param>
<param type='variable'>domain_name_eth</param>
<param type='variable'>network_eth</param>
<target>mariadb_client_address</target>
</fill>
2022-08-18 10:19:43 +02:00
<fill name="normalize_family">
2023-06-23 08:12:05 +02:00
<param type="variable">server_name</param>
2022-03-08 19:42:28 +01:00
<target>mariadb_client_username</target>
</fill>
<fill name="calc_value">
<param type="variable">mariadb_client_username</param>
<target>mariadb_client_database</target>
</fill>
2022-08-18 10:19:43 +02:00
<fill name="get_password">
<param name="server_name" type="variable">mariadb_client_server_domainname</param>
2023-06-23 08:12:05 +02:00
<param name="username" type="variable">mariadb_client_address</param>
2022-08-18 10:19:43 +02:00
<param name="description">remote</param>
<param name="type">cleartext</param>
<param name="hide" type="variable">hide_secret</param>
<target>mariadb_client_password</target>
</fill>
2022-03-08 19:42:28 +01:00
</constraints>
</rougail>