[FEATURE REQUEST] Allow appending instead of replacing zabbix templates #67404
Replies: 7 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. |
Beta Was this translation helpful? Give feedback.
-
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 ;-) |
Beta Was this translation helpful? Give feedback.
-
|
However, with this feature either you can't easily remove unused templates, or you'd be removing and re-adding every run. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
|
It looks like there is a way. The list could be stored via |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
@nicolas-janzen that's a completely different system |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions