3
0
Arne Teuke
2025-10-23 21:11:21 +02:00
parent c870e1ae22
commit 1ba00dc6c6
4 changed files with 73 additions and 18 deletions

View File

@@ -1,19 +1,15 @@
[Unit]
Description=r10k Webhook Server
After=network.target haproxy.service
Description=Webhook Service for r10k Deployment
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/webhook -hooks /etc/webhook/hooks.json -port 8088
Restart=always
User=puppet
Group=puppet
WorkingDirectory=/opt/r10k-webhook
ExecStart=/usr/bin/python3 /opt/r10k-webhook/webhook_server.py
Restart=always
RestartSec=5
Environment=R10K_WEBHOOK_SECRET=YOUR_SECRET_HERE
LimitNOFILE=65536
StandardOutput=journal
StandardError=journal
WorkingDirectory=/etc/puppetlabs/code
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target