puppet-zabbix
puppet-zabbix copied to clipboard
PrivateTmp always enabled, this messes with SNMP trap configurations
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: All versions
- Ruby: na
- Distribution: Oracle Linux 7
- Module version: 5.0.0
How to reproduce (e.g Puppet code you use)
Build a machine using the module, automatically systemd service file will contain : PrivateTmp=yes I would like to be able to configure this to be PrivateTmp=yes
What are you seeing
I'm seeing no way to configure this setting, leaving me unable to configure SNMP traps.
What behaviour did you expect instead
I expected a Class argument to enable and disable the PrivateTmp systemd setting. The default should still be 'yes', but 'no' should be a configurable option.
Output log
na
Any additional information you'd like to impart
In onder to have SNMP traps being passed to Zabbix a path has to be accessible to write a logfile to, Zabbix can read. https://zabbix.org/wiki/Start_with_SNMP_traps_in_Zabbix
What I could also do, is make the extra options configurable, so you just provide an array, that sets the options. We provide the basic options as a default, and if you want to deviate, you can do so, by injecting extra options.
that sounds good, :+1: from my side.