newer pg module
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / templates / systemd-override.erb
1 <%- if scope.lookupvar('::osfamily') == 'Gentoo' -%>
2 .include /usr/lib64/systemd/system/<%= @service_name %>.service
3 <%- elsif scope.lookupvar('::operatingsystem') == 'Fedora' -%>
4 .include /lib/systemd/system/<%= @service_name %>.service
5 <% else -%>
6 .include /usr/lib/systemd/system/<%= @service_name %>.service
7 <% end -%>
8 [Service]
9 Environment=PGPORT=<%= @port %>
10 <%- if scope.lookupvar('::osfamily') == 'Gentoo' -%>
11 Environment=DATA_DIR=<%= @datadir %>
12 <%- else -%>
13 Environment=PGDATA=<%= @datadir %>
14 <%- end -%>