3
0
Files
puppet_cd/templates/r10k/hook_config.erb

33 lines
754 B
Plaintext

[
{
"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": {
"and": [
{
"match": {
"type": "payload-hash-sha1",
"secret": "<%= @pt_webhook_secret %>"
}
},
{
"match": {
"type": "payload",
"parameter": {
"source": "body",
"name": "ref"
},
"value": "refs/heads/production"
}
}
]
}
}
]