It appears that the webhook section in README.md has not been updated for webhook-go. Notably, a lot of the values that seem like they should be optional are actually required by the different types.
I will try to submit a pull request at some point, but for reference, here is my working config:
class { 'r10k::webhook':
server => {
protected => true,
user => 'secret_username',
password => 'secret_password',
port => 8088,
tls => {
enabled => true,
certificate => "/etc/puppetlabs/puppet/ssl/certs/${facts['networking']['fqdn']}.pem",
key => "/etc/puppetlabs/puppet/ssl/private_keys/${facts['networking']['fqdn']}.pem",
},
},
chatops => {
enabled => true,
service => 'slack',
channel => '#puppet',
user => 'r10k',
auth_token => 'xoxb-not-a-valid-auth-token',
}
}
Slack Webhooks are deprecated and the new chatops works with Slack apps. You can get an API token quickly here: https://api.slack.com/tutorials/tracks/getting-a-token
The xoxb token can be found on the Install App page of the settings (https://api.slack.com/apps/_YOUR_APP_ID_/install-on-team)

The only permissions you should actually need are chat:write, chat:write.customize and possibly chat:write.public
It appears that the webhook section in README.md has not been updated for webhook-go. Notably, a lot of the values that seem like they should be optional are actually required by the different types.
I will try to submit a pull request at some point, but for reference, here is my working config:
Slack Webhooks are deprecated and the new chatops works with Slack apps. You can get an API token quickly here: https://api.slack.com/tutorials/tracks/getting-a-token
The

xoxbtoken can be found on theInstall Apppage of the settings (https://api.slack.com/apps/_YOUR_APP_ID_/install-on-team)The only permissions you should actually need are
chat:write,chat:write.customizeand possiblychat:write.public