mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
DATA_SOURCE_URI={{ pg_exporter_data_source_uri }}
|
||||
{% if pg_exporter_data_source_user is defined and pg_exporter_data_source_pass is defined %}
|
||||
DATA_SOURCE_USER={{ pg_exporter_data_source_user }}
|
||||
DATA_SOURCE_PASS={{ pg_exporter_data_source_pass }}
|
||||
{% endif %}
|
||||
PG_EXPORTER_WEB_LISTEN_ADDRESS=:{{ pg_exporter_port }}
|
||||
PG_EXPORTER_AUTO_DISCOVER_DATABASES=true
|
||||
PG_EXPORTER_EXCLUDE_DATABASES={{ pg_exporter_exclude_databases | join(',') }}
|
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=Synapse Matrix homeserver
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ pg_exporter_user }}
|
||||
Group={{ pg_exporter_user }}
|
||||
EnvironmentFile={{ pg_exporter_root_dir }}/etc/postgres-exporter.conf
|
||||
ExecStart={{ pg_exporter_root_dir }}/app/postgres_exporter
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
MemoryLimit=512M
|
||||
SyslogIdentifier=postgres-exporter
|
||||
Restart=on-failure
|
||||
StartLimitInterval=0
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
Reference in New Issue
Block a user