[
  {
    "id": "r10k-deploy",
    "execute-command": "echo "$(date) r10k called with: $@" >> /var/log/r10k-webhook.log
/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",
            "parameter": {
              "source": "body",
              "name": "ref"
            },
            "value": "refs/heads/production"
          }
        }
      ]
    }
  }
]
