Giter VIP home page Giter VIP logo

Comments (9)

razorsedge avatar razorsedge commented on September 24, 2024

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.

jhoblitt avatar jhoblitt commented on September 24, 2024

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.

razorsedge avatar razorsedge commented on September 24, 2024

@jhoblitt How does aa6755a look?

from puppet-snmp.

jhoblitt avatar jhoblitt commented on September 24, 2024

👍 This looks great / much less confusing.

from puppet-snmp.

razorsedge avatar razorsedge commented on September 24, 2024

@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.

jhoblitt avatar jhoblitt commented on September 24, 2024

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.

razorsedge avatar razorsedge commented on September 24, 2024

Ah, yes. That makes sense now. I keep getting client catalog confused with server-side stuff.

from puppet-snmp.

razorsedge avatar razorsedge commented on September 24, 2024

This ships in Forge release 3.2.0.

from puppet-snmp.

jhoblitt avatar jhoblitt commented on September 24, 2024

Fabulous!

from puppet-snmp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.