-
Notifications
You must be signed in to change notification settings - Fork 285
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
Apply the same logic of renaming parameters #495
Apply the same logic of renaming parameters #495
Conversation
It follows the name from Zabbix themself. They talk about Zabbix Server, Agents and Proxies. So thats why zabbix_agent (and thus variables) are named with an |
I tend to agree. Note that in zabbix there are processes and configurations, one matches well with collection modules, the other one with roles maybe. I don't want to argue here, I'm not convinced myself yet |
Re-reading your comment, just to make sure: you agree with the PR ? |
I would like to keep the |
I've kept original parameters so users should not be confused. Can you elaborate on what might lead users to confusion ? Be aware that as a user of the collection I myself was confused by those parameters name vs usage thus the PRs... |
e50f86b
to
da3368b
Compare
It is the Zabbix Agent role, so parameters should contain or start with |
I believe we are not talking of the same thing. My comment in Additionnal information was not about things done in "this" PR.
And
|
da3368b
to
81572fd
Compare
I was talking about this part, I would not expect the "to" starting with
The rest is all fine by me, because that makes actual sense. |
I see. I see your point.
|
Yes, I added it in the Agent because I can not assume people have the Zabbix Web deployed (via my role) and people might just use the Zabbix Agent role and nothing else. (Not even sure if I had back then already the zabbix-web role). So even these people should be - when they want to - be able to configure some basic things like a hostgroup to be present when they add a new agent. If you think it also makes sense to add that logic to the Zabbix Web role, fine by me and I happly merge the PR. But I think it is important that the Agent role also has and keep that functionality (I would either expect an issue to arise or a new PR to add it when it will be removed). |
To make it clear, I have applied your suggestions. I may be back on this topic later though, as I still find the solution confusing to end users (zabbix agent is a software deployed with related configuration file, but then zabbix agent is only a component of a zabbix host, and IMHO the role should have been |
During rebase I noticed some stuff I overlooked. Will fix and update PR. |
The names of the roles follows the naming of the Zabbix component which can be found here: https://www.zabbix.com/documentation/current/manual/introduction/overview If someone wants to deploy a Server, the person should use the zabbix_server role, when deploying an Agent, it should deploy the zabbix_agent role. Renaming the role to zabbix_host (which is nowhere to be found in the documentation in Zabbix) is only confusing for those who read the official documentation of Zabbix and want to make use of Ansible to setup their environment. |
We don't read the same doc: |
Precisely on the page you mentioned:
no agent but host. again. |
f2a98f9
to
f81778b
Compare
Hopefully all good here. I've rebased and it was a bit annoying because of the "lint pass" @dj-wasabi please double check that no old variables disappeared, they are all supposed to get a comment like It's a bit fuzzy around zabbix_url/zabbix_server_url/zabbix_agent_server_url and all as usage was not consistent between roles and tests. |
Also add zabbix_agent2_hostname we were using only zabbix_agent_hostname for both agents before. But it is also used in the template, so applied the same namming convention. Rename zabbix_create_hostgroup to zabbix_hostgroups_state Try to apply some naming convention Rename zabbix_link_templates to zabbix_host_link_templates Same logic... Rename zabbix_create_host to zabbix_host_state Same logic Rename zabbix_update_host to zabbix_host_update Same logic.... Rename zabbix_proxy to zabbix_host_proxy Same logic Rename zabbix_inventory_mode to zabbix_host_inventory_mode Same logic Rename zabbix_agent_interfaces to zabbix_host_interfaces Same logic Rename zabbix_visible_hostname to zabbix_host_visible_hostname Same logic Rename zabbix_validate_certs to zabbix_api_validate_certs Samez logic, for API Rename zabbix_agent_description to zabbix_host_description Same logic Rename zabbix_agent_inventory_zabbix to zabbix_host_inventory_zabbix Same logic Rename zabbix_macros to zabbix_hostmacros Same logic Rename zabbix_create_proxy to zabbix_proxy_state Same logic, and fix a leftover from previsou commit Use zabbix_agent_ intsead of zabbix_host_ Per suggestion from @dj-wasabi
f81778b
to
6805c01
Compare
I've recheck and I believe you can merge if you agree with the changes. |
@dj-wasabi while I'm arguing about the parameters name, my PR proposes what you validated including the rename with zabbix_agent_ prefix. |
Thanks! 👍 |
SUMMARY
I renamed some more parameters used when working with API.
ISSUE TYPE
COMPONENT NAME
roles zabbix_agent and zabbix_proxy
ADDITIONAL INFORMATION
Working more with the collection, I wonder why
zabbix_agent
role is not namedzabbix_host
... It looks like it's based on the packages name, but using the concepts of the webUI (host instead of agent) might be interesting.