[master] Add execution and state modules to manage Grafana via grafana-cli#65249
[master] Add execution and state modules to manage Grafana via grafana-cli#65249vincent-olivert-riera wants to merge 10 commits intosaltstack:masterfrom
grafana-cli#65249Conversation
This is a new Salt execution module aimed to interface with grafana-cli. As a starting point, only listing installed plugins is supported.
This interfaces with "grafana-cli plugins list-versions <plugin id>".
This function will be used by a future function for performing the installation. The goal of this function is to determine the actions of the other function while providing status information.
This interfaces with "grafana-cli plugins install <plugin id> [version]".
This interfaces with `grafana-cli plugins remove <plugin id>`.
This is a new Salt state module which makes use of the grafana_cli execution module. As a starting point, only installing plugins is supported.
This state ensures a Grafana plugin is removed.
|
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
grafana-cligrafana-cli
|
This is all new code, I would suggest publishing it as a Salt Extensions, look here for other salt extensions and inspiration. |
Hi Pedro, thanks for your suggestion. I was aware of Salt Extensions, but still I would prefer to publish it directly on this repository. |
|
Starting in Salt 3008 non-core Execution and State modules have been migrated to community support. There is a GitHub org set up for this purpose: https://github.com/salt-extensions. This code would be better served as a salt-extension. There is currently discussion and work being done on the salt-extensions Discord channel (https://discordapp.com/channels/1200072194781368340/1208165123240370197) to document and build the infrastructure for community-supported salt extensions. There is also a Salt-Extensions Working Group that takes place on the 1st and 3rd Thursday of every month to coordinate salt-extension efforts. |
What does this PR do?
Adds execution and state modules for managing Grafana via
grafana-cli.The interfacing with
grafana-cliis not complete. As a start I just added support for a few basic things that allow installing and removing plugins. Support for more stuff can be added in the future when required.Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes