You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating several years later, the merge_request_events parameter doesn't update the Push event webhook if you change from true/false and re-run puppet. The issue is that the code only checks for the existence of the webhook on the Gitlab server - it does not check the validity of the parameters.
On GitLab (Github untested), the git_webhook resource doesn't modify the webhook if it already exists:
git_webhook { 'web_post_receive_webhook' :
ensure => present,
webhook_url => 'http://puppetserver.example.com:8088/payload',
token => hiera('gitlab_api_token'),
project_name => 'puppet/control-repo',
server_url => 'http://gitlab.example.com',
provider => 'gitlab',
disable_ssl_verify => false,
}
This successfully creates the webhook, but if you change:
disable_ssl_verify => true
the webhook on Gitlab doesn't get updated.
The text was updated successfully, but these errors were encountered: