dataset/seed/postgresql-client/dictionaries/23_postgresql.xml
2023-08-29 10:37:29 +02:00

49 lines
2.3 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="postgresqlclient" target="risotto" engine="ansible">
<certificate authority="PostgreSQL" owner="pg_client_key_owner" owner_type="variable" server="pg_client_server_domainname">postgresql</certificate>
<file engine="ansible" mode="400">/secrets/postgresql.pass</file>
<file engine="ansible" mode="400">/secrets/postgresql.pass2</file>
<file filelist="postgresql_debian" engine="none" source="sysuser-postgresql-client.conf">/sysusers.d/0postgresqlclient.conf</file>
</service>
</services>
<variables>
<family name="postgresql" description="PostgreSQL">
<variable name="pg_client_server_domainname" type="domainname" mandatory="True" supplier="Postgresql" hidden="True"/>
<variable name="pg_client_username" mandatory="True" supplier="Postgresql:username" hidden="True"/>
<variable name="pg_client_password" type="password" mandatory="True" supplier="Postgresql:password" hidden="True"/>
<variable name="pg_client_database" mandatory="True" supplier="Postgresql:database" hidden="True"/>
<variable name="pg_client_key_owner" type="unix_user" mandatory="True" hidden="True">
<value>apache</value>
</variable>
</family>
</variables>
<constraints>
<fill name="normalize_family">
<param type="variable">domain_name_eth0</param>
<target>pg_client_username</target>
</fill>
<!--fill name="get_provider_name">
<param type="variable">zone_name_eth0</param>
<param>Postgresql</param>
<target>pg_client_server_domainname</target>
</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>
<target>pg_client_password</target>
</fill>
<fill name="calc_value">
<param type="variable">pg_client_username</param>
<target>pg_client_database</target>
</fill>
<condition name="disabled_if_not_in" source="os_name">
<param>Debian</param>
<target type="filelist">postgresql_debian</target>
</condition>
</constraints>
</rougail>