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
[FEATURE REQUEST] Allow appending instead of replacing zabbix templates #60434
Comments
Can you edit the title to e.g. In the meantime, you can build the list of templates with jinja and set them with a single state. I'm not sure if there's a way to accumulate values from other states to be used in this state. |
It's not need, it's "just" need more logic, we can check via API what of templates are already assigned and if it missing just add this
OK but then I should check if it somehow defined in the top.sls, etc.. I prefer the logic per state ;-) |
However, with this feature either you can't easily remove unused templates, or you'd be removing and re-adding every run. |
No, I meant a way for the apache state to add to a list that the zabbix state can then use to set all the templates as now. |
I don't have much to add to this, other than that I too would love to see I only mention clean inventory specifically, because that is how
I think that if Ie I have a zabbix-agent state that installs and configures the agent and adds the host and assigns "base level" templates, but then I have other states that come along after and configure different applications based on other conditions, and what I would ideally like is for the application states to be able to handle setting up the monitoring for themselves at the same time as the application bootstrap. I know its not a PR, but I figured that keeping the discussion alive and giving it direction might be useful. |
@nicolas-janzen that's a completely different system |
Is your feature request related to a problem? Please describe.
It would be very nice if we can add the possibility to just add a new template to zabbix in the module states.zabbix_host. Currently, it is not possible to just add a new template, I must call all templates.
Describe the solution you'd like
We've a state that install the zabbix-agent and create this host in zabbix and add a template (mostly the Linux-Template) and if this server also have additional services like apache, we call also the apache-install-state which also add the Zabbix-Template "App Apache", but instead of using just assign the new template like:
we must call all templates that we want:
the state could be called the current templates and in the second call it could be add the current templates + new templates
The text was updated successfully, but these errors were encountered: