Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update module to work with webhook-go #590

Merged
merged 5 commits into from
Jun 1, 2023

Conversation

dhollinger
Copy link
Member

Pull Request (PR) description

This PR will contain all the changes necessary to migrate the code over to using voxpupuli/webhook-go for the webhook server.

This Pull Request (PR) fixes the following issues

  • Add new type aliases for the Webhook Go configuration file
    • R10k::Webhook::Config
    • R10k::Webhook::Config::Server
    • R10k::Webhook::Config::Server::Tls
    • R10k::Webhook::Config::Chatops
    • R10k::Webhook::Config::R10k
  • Add test for new type aliases
  • Update manifests/webhook/config.pp to use the new type aliases for
    config generation. This should map almost 1:1 with the config file
    format
  • Install Webhook Go from GitHub Releases page using RPM or DPKG. No
    repos or other install options yet.
  • Update Params to remove no longer used options.

* Updated params to for the new webhook classes
* Created `r10k::webhook` class. This class contains all other classes
  and parameters.
* Added initial tests for os tests.
@dhollinger dhollinger marked this pull request as ready for review May 31, 2023 04:23
systemd: https://github.com/voxpupuli/puppet-systemd.git
vcsrepo: https://github.com/puppetlabs/puppetlabs-vcsrepo.git
yumrepo_core: https://github.com/puppetlabs/puppetlabs-yumrepo_core.git
forge_modules:
stdlib:
repo: "puppetlabs/stdlib"
ref: "8.6.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

puppetlabs/stdlib released 9.0.0 which removes a bunch of deprecated functions. This caused issues with tests in files unrelated to this PR. We will need to address those, but until then, we need to pin the stdlib fixture for tests.

@dhollinger dhollinger merged commit 8b3ddad into voxpupuli:master Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants