X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fmirror-health.service.erb;h=60d9dcd72b3c9d46208051b0db75b56cfc4db2c2;hb=274093a3dbf357538663b85db00d4f98c051a3ba;hp=575c958f330e96ab185ddaba682200f8ccdb7920;hpb=1552612184671215e066d620536e0594a2bb4ea5;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/mirror-health.service.erb b/modules/roles/templates/mirror-health.service.erb index 575c958f3..60d9dcd72 100644 --- a/modules/roles/templates/mirror-health.service.erb +++ b/modules/roles/templates/mirror-health.service.erb @@ -4,16 +4,22 @@ ## [Unit] -Description=Mirror health checking <%= @healthcheck_service %> +Description=Mirror health checking <%= @check_service %> [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_HOSTS=<%= @check_hosts %>" +Environment="MIRROR_CHECK_HEALTH_URL=<%= @health_url %>" +Environment="MIRROR_CHECK_HOSTS=<%= @check_hosts.join ' ' %>" Environment="MIRROR_CHECK_INTERVAL=<%= @check_interval %>" [Install]