Comments (8)
diff --git a/manifests/params.pp b/manifests/params.pp
index 1c9566d..c531828 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -472,8 +472,14 @@ class snmp::params {
$sysconfig = '/etc/default/snmpd'
$var_net_snmp = '/var/lib/snmp'
$varnetsnmp_perms = '0755'
- $varnetsnmp_owner = 'snmp'
- $varnetsnmp_group = 'snmp'
+
+ if (versioncmp($::operatingsystemmajrelease, '9') >= 0) {
+ $varnetsnmp_owner = 'Debian-snmp'
+ $varnetsnmp_group = 'Debian-snmp'
+ } else {
+ $varnetsnmp_owner = 'snmp'
+ $varnetsnmp_group = 'snmp'
+ }
$client_package_name = 'snmp'
$client_config = '/etc/snmp/snmp.conf'
from puppet-snmp.
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.
Also, there is apparently a Debian remix without systemd :)
from puppet-snmp.
Any news regarding this issue?
from puppet-snmp.
PR in #109
from puppet-snmp.
update, PR in #113
from puppet-snmp.
@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.
from puppet-snmp.
Merged into the develop
branch.
from puppet-snmp.
Released with razorsedge/snmp version 3.9.0.
from puppet-snmp.
Related Issues (20)
- # Other Configuration HOT 2
- To support CentOS 8 HOT 1
- rw and ro community strings wrong and default breaks rhel7 if ipv6 off
- $facts['networking']['fqdn'] is too recent HOT 3
- Dependency on stdlib versions incorrect for version 5.1.0 ; types/ip/address/v6/cidr.pp and type Stdlib::IP::Address::V6::CIDR does not exist in 4.25.0
- Docs: Incorrect dependency (stdlib) listed on forge.puppet.com page HOT 2
- Doesn't work on ubuntu focal 20.04 HOT 1
- Cannot disable traditional access control for ro_community{,6}
- FreeBSD Support
- Support Debian Bullseye 11 (to be released in may or june) HOT 4
- systemd daemon-reload restarts snmpd HOT 15
- snmpd starts on each puppet run HOT 1
- Incorrect type of agentx_perms parameter
- Release new version HOT 4
- How to disable snmpv1 and v2 HOT 1
- Support for Ubuntu 22.04 HOT 6
- Reload snmpd config instead of restarting service by default
- $snmpv2_enable parameter does not disable snmpv2.
- snmpd_options and/or snmptrapd_options are ignored on Ubuntu and Debian due to lack of systemd support
- Removing a non-empty directory $var_net_snmp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-snmp.