File: systemd-override.conf.epp

package info (click to toggle)
puppet-module-puppetlabs-postgresql 10.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 940 kB
  • sloc: ruby: 731; sh: 66; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%- |
  Stdlib::Port $port,
  Stdlib::Absolutepath             $datadir,
  Optional[String[1]]              $extra_systemd_config,
| -%>
[Unit]
RequiresMountsFor=<%= $datadir %>

[Service]
Environment=PGPORT=<%= $port %>
<%- if $facts['os']['family'] == 'Gentoo' { -%>
Environment=DATA_DIR=<%= $datadir %>
<%- } else { -%>
Environment=PGDATA=<%= $datadir %>
<%- } -%>
<% if $extra_systemd_config { -%>
<%= $extra_systemd_config %>
<% } -%>