42 lines
1.9 KiB
XML
42 lines
1.9 KiB
XML
|
<?xml version='1.0' encoding='UTF-8'?>
|
||
|
<rougail version="0.10">
|
||
|
<services>
|
||
|
<service name="postgresqlclient" target="multi-user" engine="creole">
|
||
|
<file mode="400">/secrets/postgresql.pass</file>
|
||
|
</service>
|
||
|
</services>
|
||
|
<variables>
|
||
|
<family name="postgresql" description="PostgreSQL">
|
||
|
<variable name="pg_client_server_domainname" type="domainname" description="Nom de domaine du serveur PostgreSQL" mandatory="True"/>
|
||
|
<variable name="pg_client_username" description="Client username" mandatory="True" hidden="True"/>
|
||
|
<variable name="pg_client_password" type="password" description="Client password" mandatory="True" hidden="True"/>
|
||
|
<variable name="pg_client_database" description="Client database" mandatory="True" hidden="True"/>
|
||
|
</family>
|
||
|
</variables>
|
||
|
<constraints>
|
||
|
<fill name="set_linked">
|
||
|
<param name="linked_server" type="variable">pg_client_server_domainname</param>
|
||
|
<param name="linked_provider">clients</param>
|
||
|
<param name="linked_value" type="variable">domain_name_eth0</param>
|
||
|
<target>pg_client_username</target>
|
||
|
</fill>
|
||
|
<fill name="get_linked_configuration">
|
||
|
<param name="linked_server" type="variable">pg_client_server_domainname</param>
|
||
|
<param name="linked_provider">client_password</param>
|
||
|
<param name="dynamic" type="variable">pg_client_username</param>
|
||
|
<target>pg_client_password</target>
|
||
|
</fill>
|
||
|
<check name="set_linked_configuration">
|
||
|
<param name="linked_server" type="variable">pg_client_server_domainname</param>
|
||
|
<param name="linked_provider">client_ip</param>
|
||
|
<param name="linked_value" type="variable">ip_eth0</param>
|
||
|
<param name="dynamic" type="variable">pg_client_username</param>
|
||
|
<target>pg_client_password</target>
|
||
|
</check>
|
||
|
<fill name="calc_value">
|
||
|
<param type="variable">pg_client_username</param>
|
||
|
<target>pg_client_database</target>
|
||
|
</fill>
|
||
|
</constraints>
|
||
|
</rougail>
|