Comments (8)
That is correct... Here we added a workaround, but it would be nice to see the logic directly into the module:
case $::lsbdistcodename {
'stretch': {
augeas { 'systemd-snmpd-conf':
context => '/files/lib/systemd/system/snmpd.service/Service/ExecStart',
changes => [
'set arguments/1 -LS2d',
],
require => Package['snmpd'],
notify => [ Exec['systemd-reload'], Service['snmpd'], ],
}
exec { 'systemd-reload':
command => '/bin/systemctl daemon-reload',
refreshonly => true,
}
}
default: { }
}
With the exec due to systemd being unable to read system conf files directly, as it seems.
from puppet-snmp.
Hi,
I have the same issue.
@bastelfreak is there any work in progress on this issue ?
Maybe the fastest way to fix this is to provide for debian 9 a template for /lib/systemd/system/snmpd.service
?
from puppet-snmp.
@hdep can you provide a patch for this? Also the preferred way custom systemd unit files is /etc/systemd/system/
and not /lib/systemd/system
.
from puppet-snmp.
Since this module is declared Debian9 compatible and with acceptance tests, they should fail. But they pass.
@hep with your patch can you update acceptance tests to tackle this issue ?
from puppet-snmp.
@bastelfreak on debian 9 the file in /etc/systemd is a link to /lib/systemd
$ ls -al /etc/systemd/system/multi-user.target.wants/snmpd.service
lrwxrwxrwx 1 root root 33 janv. 4 10:02 /etc/systemd/system/multi-user.target.wants/snmpd.service -> /lib/systemd/system/snmpd.service
So I can't do that
from puppet-snmp.
I give up because I think fixing rpsec should have been done in another PR.
if anyone can fix the bug this will be great.
from puppet-snmp.
bug still present in 5.0.0
from puppet-snmp.
fixed in #216
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.