45 lines
2.1 KiB
XML
45 lines
2.1 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<rougail version="0.10">
|
|
<services>
|
|
<service name="mariadbclient" target="risotto" engine="ansible"/>
|
|
</services>
|
|
<variables>
|
|
<family name="mariadb" description="MariaDB">
|
|
<variable name="mariadb_client_server_domainname" type="domainname" description="Nom de domaine du serveur MariaDB" mandatory="True" supplier="MariaDB"/>
|
|
<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"/>
|
|
<variable name="mariadb_client_password" type="secret" description="Database password" mandatory="True" hidden="True" supplier="MariaDB:password"/>
|
|
<variable name="mariadb_client_database" description="Database name" mandatory="True" hidden="True" supplier="MariaDB:database"/>
|
|
<variable name='mariadb_client_address' hidden="True"/>
|
|
</family>
|
|
</variables>
|
|
<constraints>
|
|
<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>
|
|
<fill name="normalize_family">
|
|
<param type="variable">server_name</param>
|
|
<target>mariadb_client_username</target>
|
|
</fill>
|
|
<fill name="calc_value">
|
|
<param type="variable">mariadb_client_username</param>
|
|
<target>mariadb_client_database</target>
|
|
</fill>
|
|
<fill name="get_password">
|
|
<param name="server_name" type="variable">mariadb_client_server_domainname</param>
|
|
<param name="username" type="variable">mariadb_client_address</param>
|
|
<param name="description">remote</param>
|
|
<param name="type">cleartext</param>
|
|
<param name="hide" type="variable">hide_secret</param>
|
|
<target>mariadb_client_password</target>
|
|
</fill>
|
|
</constraints>
|
|
</rougail>
|