puppet-zabbix icon indicating copy to clipboard operation
puppet-zabbix copied to clipboard

PrivateTmp always enabled, this messes with SNMP trap configurations

Open ranzbak opened this issue 6 years ago • 2 comments

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

ranzbak avatar Aug 07 '18 12:08 ranzbak

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.

ranzbak avatar Aug 23 '18 08:08 ranzbak

that sounds good, :+1: from my side.

bastelfreak avatar Sep 04 '18 14:09 bastelfreak