add config files - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/284
This commit is contained in:
18
templates/r10k/hook_config.erb
Normal file
18
templates/r10k/hook_config.erb
Normal file
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"id": "r10k-deploy",
|
||||
"execute-command": "/usr/local/bin/r10k",
|
||||
"command-working-directory": "/etc/puppetlabs/code",
|
||||
"pass-arguments-to-command": [
|
||||
{ "source": "string", "name": "deploy" },
|
||||
{ "source": "string", "name": "environment" },
|
||||
{ "source": "string", "name": "-pv" }
|
||||
],
|
||||
"trigger-rule": {
|
||||
"match": {
|
||||
"type": "payload-hash-sha1",
|
||||
"secret": "your_webhook_secret"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user