Skip to content

Documentation is totally wrong for webhook-go #644

@yakatz

Description

@yakatz

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)
image

The only permissions you should actually need are chat:write, chat:write.customize and possibly chat:write.public

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions