puppet-zabbix
puppet-zabbix copied to clipboard
Move zabbix_(url|user|pass) and apache_use_ssl to config file
trafficstars
(I removed the default template because doesn't really apply to a feature)
Problem to solve
The current zabbix types/provider are pretty hacky. Some examples:
puppet resourcepurging isn't possible (self.instancesisn't implemented)zabbix_hostdoesn't allowipaddress,use_ip,proxy, ... to be changed- If templates get added to/from
zabbix_hostthe change isn't properly show. Puppet only saysNotice: /Stage[main]/Zabbix_host[example.org]/ensure: current_value 'absent', should be 'present' - Other types/provider have most certainly the same problem as
zabbix_host
Proposal
- Implement
self.instances/self.prefetchfor all providers and change current type params to properties where needed. This will allow Puppet itself to determine which things need to change and will allow proper logging of the changeNotice: /Stage[main]/Main/Zabbix_host[example.org]/ipaddress: current_value '10.0.0.2', should be '10.0.0.1' - To implement
self.instanceswe need the credentials to be available outside of the type. This is required becauseself.instancescannot access thezabbix_(url|user|pass)params of the custom type
Hi @baurmatt, the proposal sounds good. Sadly I won't have time in the next weeks to implement something like this. If you're willing to do this I'm happy to give it a review and merge it.
Hey @bastelfreak, thanks for taking the time to review my proposal. I'm happy to implement this myself, in fact I'm already have a large portion of it implement in our fork. I will add PRs over time which inclemently implement this.