2022-03-08 19:42:28 +01:00
<?xml version='1.0' encoding='UTF-8'?>
<rougail version= "0.10" >
<services >
2022-12-25 17:08:52 +01:00
<service name= "postgresqlclient" target= "risotto" engine= "cheetah" >
2022-03-08 19:42:28 +01:00
<file mode= "400" > /secrets/postgresql.pass</file>
2022-10-19 18:37:51 +02:00
<file file_type= "variable" source= "ca_PostgreSQL.crt" > pg_client_ca_file</file>
<file file_type= "variable" owner_type= "variable" owner= "pg_client_key_owner" mode= "444" source= "postgresql.crt" > pg_client_crt_file</file>
<file file_type= "variable" owner_type= "variable" owner= "pg_client_key_owner" mode= "400" source= "postgresql.key" > pg_client_key_file</file>
2022-10-01 19:01:12 +02:00
<file filelist= "postgresql_debian" engine= "none" source= "sysuser-postgresql-client.conf" > /sysusers.d/0postgresqlclient.conf</file>
2022-03-08 19:42:28 +01:00
</service>
</services>
<variables >
<family name= "postgresql" description= "PostgreSQL" >
2022-12-25 17:08:52 +01:00
<variable name= "pg_client_server_domainname" type= "domainname" description= "Nom de domaine du serveur PostgreSQL" mandatory= "True" supplier= "Postgresql" hidden= "True" />
2022-03-08 19:42:28 +01:00
<variable name= "pg_client_username" description= "Client username" mandatory= "True" hidden= "True" />
2022-08-18 10:19:43 +02:00
<variable name= "pg_client_password" type= "password" description= "Client password" mandatory= "True" hidden= "True" supplier= "Postgresql:password" />
2022-03-08 19:42:28 +01:00
<variable name= "pg_client_database" description= "Client database" mandatory= "True" hidden= "True" />
2022-12-25 17:08:52 +01:00
<variable name= "pg_client_key_owner" type= "unix_user" description= "Key owner" mandatory= "True" hidden= "True" >
2022-04-28 21:48:16 +02:00
<value > apache</value>
2022-04-08 18:52:43 +02:00
</variable>
2022-10-19 18:37:51 +02:00
<variable name= "pg_client_ca_file" type= "filename" description= "Postgresql CA filename" hidden= "True" />
<variable name= "pg_client_crt_file" type= "filename" description= "Postgresql cert filename" hidden= "True" />
<variable name= "pg_client_key_file" type= "filename" description= "Postgresql key filename" hidden= "True" />
2022-03-08 19:42:28 +01:00
</family>
</variables>
<constraints >
2022-06-26 19:33:44 +02:00
<fill name= "normalize_family" >
<param type= "variable" > domain_name_eth0</param>
<target > pg_client_username</target>
</fill>
2022-08-18 10:19:43 +02:00
<!-- fill name="get_provider_name">
2022-06-25 08:11:37 +02:00
<param type= "variable" > zone_name_eth0</param>
<param > Postgresql</param>
<target > pg_client_server_domainname</target>
2022-08-18 10:19:43 +02:00
</fill-->
<fill name= "get_password" >
<param name= "server_name" type= "variable" > pg_client_server_domainname</param>
<param name= "username" type= "variable" > domain_name_eth0</param>
<param name= "description" > remote</param>
<param name= "type" > cleartext</param>
<param name= "hide" type= "variable" > hide_secret</param>
2022-03-08 19:42:28 +01:00
<target > pg_client_password</target>
</fill>
<fill name= "calc_value" >
<param type= "variable" > pg_client_username</param>
<target > pg_client_database</target>
</fill>
2022-10-19 18:37:51 +02:00
<fill name= "calc_value" >
<param type= "variable" > tls_ca_directory</param>
<param > ca_PostgreSQL.crt</param>
<param name= "join" > /</param>
<target > pg_client_ca_file</target>
</fill>
<fill name= "calc_value" >
<param type= "variable" > tls_cert_directory</param>
<param > postgresql.crt</param>
<param name= "join" > /</param>
<target > pg_client_crt_file</target>
</fill>
<fill name= "calc_value" >
<param type= "variable" > tls_key_directory</param>
<param > postgresql.key</param>
<param name= "join" > /</param>
<target > pg_client_key_file</target>
</fill>
2022-10-01 19:01:12 +02:00
<condition name= "disabled_if_not_in" source= "os_name" >
<param > Debian</param>
<target type= "filelist" > postgresql_debian</target>
</condition>
2022-03-08 19:42:28 +01:00
</constraints>
</rougail>