1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-20 21:23:31 +02:00

Add gluebuddy role

This commit is contained in:
Jelle van der Waa 2021-12-04 11:18:50 +01:00
parent fc3f03b674
commit c1eca93498
No known key found for this signature in database
GPG Key ID: C06086337C50773E
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,25 @@
[Unit]
Description=gluebuddy service
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/gluebuddy
DynamicUsers=true
NoNewPrivileges=yes
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
ProtectHostname=true
RestrictRealtime=true
CapabilityBoundingSet=
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=gluebuddy timer
[Timer]
OnUnitActiveSec=10min
OnBootSec=5min
RandomizedDelaySec=1min
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,7 @@
---
- name: install systemd service/timer
copy: src={{ item }} dest="/etc/systemd/system/{{ item }}" owner=root group=root mode=0644
with_items:
- gluebuddy.service
- gluebuddy.timer