projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ssl to metadata.ftp-master.d.o
[mirror/dsa-puppet.git]
/
modules
/
roles
/
templates
/
mirror-health.service.erb
diff --git
a/modules/roles/templates/mirror-health.service.erb
b/modules/roles/templates/mirror-health.service.erb
index
575c958
..
60d9dcd
100644
(file)
--- a/
modules/roles/templates/mirror-health.service.erb
+++ b/
modules/roles/templates/mirror-health.service.erb
@@
-4,16
+4,22
@@
##
[Unit]
##
[Unit]
-Description=Mirror health checking <%= @
health
check_service %>
+Description=Mirror health checking <%= @check_service %>
[Service]
ExecStart=/usr/local/sbin/mirror-health
[Service]
ExecStart=/usr/local/sbin/mirror-health
-RuntimeDirectory=dsa-mirror-health-<%= @healthcheck_service %>
-DynamicUser=true
+RuntimeDirectory=dsa-mirror-health-<%= @check_service %>
+ProtectSystem=full
+ProtectHome=read-only
+PrivateTmp=true
+User=nobody
+Group=nogroup
+Restart=always
Environment="MIRROR_CHECK_SERVICE=<%= @check_service %>"
Environment="MIRROR_CHECK_URL=<%= @url %>"
Environment="MIRROR_CHECK_SERVICE=<%= @check_service %>"
Environment="MIRROR_CHECK_URL=<%= @url %>"
-Environment="MIRROR_CHECK_HOSTS=<%= @check_hosts %>"
+Environment="MIRROR_CHECK_HEALTH_URL=<%= @health_url %>"
+Environment="MIRROR_CHECK_HOSTS=<%= @check_hosts.join ' ' %>"
Environment="MIRROR_CHECK_INTERVAL=<%= @check_interval %>"
[Install]
Environment="MIRROR_CHECK_INTERVAL=<%= @check_interval %>"
[Install]