-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Debian Stretch (new stable) use a different user for snmpd #108
Comments
|
diff --git a/tmp/origsnmp/manifests/params.pp b/manifests/params.pp index 1c9566d..15ee810 100644 --- a/tmp/origsnmp/manifests/params.pp +++ b/manifests/params.pp @@ -463,17 +463,22 @@ class snmp::params { $trap_service_name = 'snmptrapd' } 'Debian': { + if $::operatingsystemmajrelease == "9" { + $varnetsnmp_owner = "Debian-snmp" + $varnetsnmp_group = "Debian-snmp" + } else { + $varnetsnmp_owner = "snmp" + $varnetsnmp_group = "snmp" + } $package_name = 'snmpd' $service_config = '/etc/snmp/snmpd.conf' $service_config_perms = '0600' $service_config_dir_group = 'root' $service_name = 'snmpd' - $snmpd_options = '-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid' + $snmpd_options = "-Lsd -Lf /dev/null -u $varnetsnmp_owner -g $varnetsnmp_group -I -smux -p /var/run/snmpd.pid" $sysconfig = '/etc/default/snmpd' $var_net_snmp = '/var/lib/snmp' $varnetsnmp_perms = '0755' - $varnetsnmp_owner = 'snmp' - $varnetsnmp_group = 'snmp' $client_package_name = 'snmp' $client_config = '/etc/snmp/snmp.conf' Altough systemd does not use /etc/default/snmpd in this case, it's confusing to have settings different in different places. |
Any news regarding this issue? |
PR in #109 |
update, PR in #113 |
@razorsedge Are you still maintaining this project? We're still hoping to get #113 merged in so we can use it without forking this module. |
Merged into the |
Released with razorsedge/snmp version 3.9.0. |
Hi,
Here is the new user for snmpd:
Regards, Adam.
The text was updated successfully, but these errors were encountered: