-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add an optional key_source parameter to set up the package repository. #35
base: master
Are you sure you want to change the base?
Conversation
This is needed for hosts without access to the internet.
❌ Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
Hepp! @gitbensons - do you have anything against signing the agreement? Otherwise I will steal your commit and repeat your work. This is important for me too. |
@bahner you are free to steal the commit 🙂 |
The agreement is not required anymore: the module is now managed by voxpupuli. The transition is in progress, once #39 is merged, the CI should stop checking this 😉 |
Can you please rebase your changes on top of the main branch? From your working directory:
|
@smortex I synced my repo with master and rebased my changes. Not sure if this actually did what you expected. Directly after pushing the changes, Github went down, so I take this as a sign :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New CI proves to be useful \o/
Q: if your nodes cannot download the PGP key, how do they manage to fetch the actual packages? Are these changes really enough?
@@ -18,6 +18,7 @@ | |||
String $proxy = 'absent', | |||
Integer $version = 7, | |||
Optional[String] $base_repo_url = undef, | |||
Optional[String] $key_source = 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failure can be fixed by removing the Optional
. While here, maybe we can use a stricter type than String
, e.g. String[1]
(non-empty string) or Stdlib::HTTPUrl
(which would not allow puppet:///modules/profile/esGPG-KEY-elasticsearch/
so maybe not so good?). Also, missing coma at end of line 😉
Optional[String] $key_source = 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' | |
Stdlib::HTTPUrl $key_source = 'https://artifacts.elastic.co/GPG-KEY-elasticsearch', |
Yes. I use nexus[1], which goes out and fetches all files required. So it
will just download the GPG key from you and store it in it's repo cache. It
could also just use the base repo path to get this really.
- bahner
[1] https://www.sonatype.com/products/repository-oss
søn. 28. nov. 2021 kl. 20:40 skrev Romain Tartière ***@***.***
…:
***@***.**** commented on this pull request.
New CI proves to be useful \o/
Q: if your nodes cannot download the PGP key, how do they manage to fetch
the actual packages? Are these changes really enough?
------------------------------
In manifests/repo.pp
<#35 (comment)>
:
> @@ -18,6 +18,7 @@
String $proxy = 'absent',
Integer $version = 7,
Optional[String] $base_repo_url = undef,
+ Optional[String] $key_source = 'https://artifacts.elastic.co/GPG-KEY-elasticsearch'
CI failure can be fixed by removing the Optional. While here, maybe we
can use a stricter type than String, e.g. String[1] (non-empty string) or
Stdlib::HTTPUrl (which would not allow
puppet:///modules/profile/esGPG-KEY-elasticsearch/ so maybe not so
good?). Also, missing coma at end of line 😉
⬇️ Suggested change
- Optional[String] $key_source = 'https://artifacts.elastic.co/GPG-KEY-elasticsearch'
+ Stdlib::HTTPUrl $key_source = 'https://artifacts.elastic.co/GPG-KEY-elasticsearch',
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNLSL2TPDWGY25QED6A2XDUOKARDANCNFSM4YCFMXSQ>
.
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&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Mvh,
Lars Bahner
|
Our internal hosts have no access to the internet, hence no option to download GPG-KEY-elasticsearch. This tiny patch adds the option to specify the download location for the GPG file.