voxpupuli / puppet-gitlab_ci_runner

Module to mange gitlab CI runners. Extracted from https://github.com/voxpupuli/puppet-gitlab
Apache License 2.0
14 stars 52 forks source link

Allow `hkp://` style URLs for `repo_keyserver` URL #102

Closed hp197 closed 2 years ago

hp197 commented 3 years ago

Fixes voxpupuli/puppet-gitlab_ci_runner#101

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

hp197 commented 3 years ago

Added test case, will need to test it offline though, travis isn't playing nice.

hp197 commented 3 years ago

👍

test case made and passes:

with manage_repo => true and repo_keyserver => hkp://keys.gnupg.net:80 is expected to compile into a catalogue without dependency cycles is expected to contain Class[gitlab_ci_runner::repo] is expected to contain Apt::Source[apt_gitlabci] with key => {"id"=>"F6403F6544A38863DAA0B6E03F01618A51312F3F", "server"=>"hkp://keys.gnupg.net:80"}

Please also note the apt::key regex: https://github.com/puppetlabs/puppetlabs-apt/blob/main/manifests/key.pp#L43

Maybe it should be converted to something like that?

kenyon commented 3 years ago

Please also note the apt::key regex: https://github.com/puppetlabs/puppetlabs-apt/blob/main/manifests/key.pp#L43

Maybe it should be converted to something like that?

Sure, I think that would be an improvement, so if you want to do that, go ahead. :smiley:

kenyon commented 3 years ago

We need to get #93 done to get the tests to pass.

hp197 commented 3 years ago
with manage_repo => true and repo_keyserver => keys.gnupg.net
  is expected to compile into a catalogue without dependency cycles
  is expected to contain Class[gitlab_ci_runner::repo]
  is expected to contain Apt::Source[apt_gitlabci] with key => {"id"=>"F6403F6544A38863DAA0B6E03F01618A51312F3F", "server"=>"keys.gnupg.net"}
with manage_repo => true and repo_keyserver => hkp://keys.gnupg.net:80
  is expected to compile into a catalogue without dependency cycles
  is expected to contain Class[gitlab_ci_runner::repo]
  is expected to contain Apt::Source[apt_gitlabci] with key => {"id"=>"F6403F6544A38863DAA0B6E03F01618A51312F3F", "server"=>"hkp://keys.gnupg.net:80"}
with manage_repo => true and repo_keyserver => https://keys.gnupg.net:88
  is expected to compile into a catalogue without dependency cycles
  is expected to contain Class[gitlab_ci_runner::repo]
  is expected to contain Apt::Source[apt_gitlabci] with key => {"id"=>"F6403F6544A38863DAA0B6E03F01618A51312F3F", "server"=>"https://keys.gnupg.net:88"}

Added custom keyserver type with the regex. This is in my opinion cleaner then add the whole regex to init.pp. Existing functionality still works as before.

hp197 commented 3 years ago

ready to merge ❤️

alexjfisher commented 2 years ago

@hp197 Sorry for the delay. Would you be able to rebase, so that we could get this change in?

hp197 commented 2 years ago

Sure, though I'm on vacation for the next 2 weeks. If you can wait on that I'll do it after I'm back.

On Mon, Aug 9, 2021, 17:53 Alexander Fisher @.***> wrote:

@hp197 https://github.com/hp197 Sorry for the delay. Would you be able to rebase, so that we could get this change in?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/voxpupuli/puppet-gitlab_ci_runner/pull/102#issuecomment-895338063, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKRKZFF4KU326UBETAWUZDT372W3ANCNFSM42B2SPXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

hp197 commented 2 years ago

rebased, squashed and ready to merge (if tests pass) ❤️

hp197 commented 2 years ago

@alexjfisher ready and tests passed

alexjfisher commented 2 years ago

@hp197 Thanks!