-
-
Notifications
You must be signed in to change notification settings - Fork 3
Support custom arguments #11
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
base: main
Are you sure you want to change the base?
Conversation
f067719 to
5558686
Compare
* Add hiera structure (datadir and yaml file) to improve the module
* Add a default value for Grafana Alloy APT key Id (data/os/Debian.yaml)
* Adapt the repo class to use it
* Add a default value for apt_key_id ({ default_value => '' })
5558686 to
7ac5e8e
Compare
|
Hi, If yes could you tell me when the new release will be available on the puppet forge please ? Thanks in advance |
* Update the repo class to make $apt_key_id variable optional * Change the apt_key_id scope * grafana_alloy::repo::apt_key_id instead of grafana_alloy::apt_key_id
|
Finally, the more I use the module, the more I add some features that were necessary for me to configure Grafana Alloy. If the PR was ok for you @ekohl , could you validate it and tell me when my modifications will be available on puppet forge ? Thanks in advance |
* Update the README.md in accordance with the feature
b6f4c75 to
c101abd
Compare
I don't even know what the original issue is. You only described what you did, not why. This means I can't validate it.
When it is merged a release needs to be made. That is documented in https://voxpupuli.org/docs/releasing_version/. |
|
Hello @ekohl , in fact I did this PR because I use puppet 5 (v5.5.22) with some old version of grafana_alloy dependencies such as apt (v7.0.0) and I can't upgrade the puppet version. |
|
I'm not opposed to introducing the class parameter without a default so you can work around it in your own infrastructure, but would like to avoid us having to maintain the GPG key ID unless there's a good reason, but Puppet 5 isn't a good reason. We don't support Puppet 5 anymore, nor apt 7.0. Our metadata states we only support Puppet 7+ and puppetlabs/apt 9.2+. |
* Remove unnecessary apt_key_id variable (grafana_alloy::repo)
|
I understand what you said. puppetlabs/apt 9.2+. brings new feature especially the apt gpg keyring management by name instead of by id. So I remove the hiera.yaml file and the data directory too. |
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.
Thanks. I've updated the PR title to reflect the change.
README.md
Outdated
| If you want to adapt the Alloy configuration you can use the `config` variable like this (into hiera declaration file): | ||
|
|
||
| ```puppet | ||
| grafana_alloy::config: |
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.
grafana_alloy::config is a private API so documenting it as the primary usage doesn't look like the best idea. Perhaps better to expose it in init.pp as a real parameter?
* Support RedHat customization (to specify CUSTOM_ARGS)
* Add @example sections to describe how you can use grafana_alloy and its sub-classes
* Add REFERENCE.md file * Update the README.md to refer REFERENCE.md file and remove obsolete comments
|
Hello @ekohl , thx again and a lot for your feedback. |
* bundle exec rake strings:generate:reference
e0f7989 to
21d1d07
Compare
4704dbd to
2d4c49a
Compare
* Change the way to support Multiple OS when specify CUSTOM_ARGS env variable
2d4c49a to
612d85e
Compare
|
Hi, I have the same issue, can it be merged please ? cc @ekohl |
| # @example If you want to pass arguments to the run commands, you can add the following content into your hieradata file: | ||
| # class { 'grafana_alloy::config': |
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.
This is a private class, so either you make a full hiera example here, or make the class non-private, or expose custom_args from init.pp.
Pull Request (PR) description
This Pull Request (PR) fixes the following issues