DynamicUser and python don't mix, apply by hand instead
[mirror/dsa-puppet.git] / modules / roles / templates / mirror-health.service.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 [Unit]
7 Description=Mirror health checking <%= @healthcheck_service %>
8
9 [Service]
10 ExecStart=/usr/local/sbin/mirror-health
11 RuntimeDirectory=dsa-mirror-health-<%= @healthcheck_service %>
12 ProtectSystem=full
13 ProtectHome=read-only
14 PrivateTmp=true
15 User=nobody
16 Group=nogroup
17
18 Environment="MIRROR_CHECK_SERVICE=<%= @check_service %>"
19 Environment="MIRROR_CHECK_URL=<%= @url %>"
20 Environment="MIRROR_CHECK_HOSTS=<%= @check_hosts.join ' ' %>"
21 Environment="MIRROR_CHECK_INTERVAL=<%= @check_interval %>"
22
23 [Install]
24 WantedBy=multi-user.target