Closed ghormoon closed 3 years ago
Also, please add information about supported types for zabbix-agent:server
, zabbix-agent:serveractive
to pillar.example
.
example added
@ghormoon sorry for delay, looks good for me now. Thanks for improvement!
:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[feat]
A new featureDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
None
Describe the changes you're proposing
Allow to use string as Server and ServerActive in agent. It's expecially useful if yhe master is using "pillar_merge_lists: True" as you can't change it for the spefic keys, only globally. This allows you to decide to use a way, that will actually overwrite, not merge, if you have a generic value in generic pillar, that you need to overwrite in more specific pillar. No change for people using it as a list. I doubt anyone is using the string currently, as it will produce something like "Server=h,o,s,t,n,a,m,e,.,x,x,x", which doesn't make sense (and will throw up error if the hostname.xxx has multiple instances of the same letter), so i consider it nonbreaking change.
Pillar / config required to test the proposed changes
Master with setting: pillar_merge_lists: True list way:
generic pillar:
specific pillar:
string way: generic pillar:
specific pillar:
Debug log showing how the proposed changes work
files contain:
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).