Comments (9)
I will have to dig into this. I might lean toward ensure => absent
propagating to snmp::client
.
I am not happy that package { 'foo': ensure => present }
runs yum while package { 'foo': ensure => absent }
runs rpm.
from puppet-snmp.
The logic behind that is that yum will try to remove everything that
depends that package where as rpm removes just the package. Yum's
behavior is better in this instance but is known to cause breakage by
being over zealous. Eg., uninstalling all of gnome because you want to
remove cups.
I think there may be a way to force it to use yum for the removal but
it's been awhile since I've looked at the code for that type.
from puppet-snmp.
@jhoblitt How does aa6755a look?
from puppet-snmp.
👍 This looks great / much less confusing.
from puppet-snmp.
@jhoblitt You wouldn't happen to know how to test the Puppet warning
function in rspec would you?
This just does not work in rspec-puppet:
it { should contain_warning('snmp: parameter install_client is deprecated; please use manage_client')}
from puppet-snmp.
Unfortunately, you can't test if a function call happened that way because the contain_* methods inspect the state of the generated catalog (which only contains resources). The only solution I've come up with for warnings is to look for the string in the stderr with rspec-system/beaker. Eg: https://github.com/puppetlabs/puppetlabs-concat/blob/master/spec/acceptance/deprecation_warnings_spec.rb
from puppet-snmp.
Ah, yes. That makes sense now. I keep getting client catalog confused with server-side stuff.
from puppet-snmp.
This ships in Forge release 3.2.0.
from puppet-snmp.
Fabulous!
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.