f-86: deploy: unité two-hostsvc, release et provision du lab #86

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-25 20:58:39 +01:00
commit 0ed7f0dd1d
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
7 changed files with 58 additions and 16 deletions

View file

@ -0,0 +1,25 @@
[Unit]
Description=two DNS and NTP relay of the VPCs
After=network.target
Before=agent.service
[Service]
Type=simple
ExecStart=/opt/two/bin/two-hostsvc
Restart=on-failure
RuntimeDirectory=two/hostsvc
RuntimeDirectoryMode=0700
RuntimeDirectoryPreserve=yes
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_NET_BIND_SERVICE CAP_DAC_READ_SEARCH
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
LockPersonality=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
[Install]
WantedBy=multi-user.target