Code Monkey home page Code Monkey logo

Comments (5)

davidjmemmett avatar davidjmemmett commented on June 29, 2024

I can't get past this issue either, on Ubuntu 18.04, I get the following error:

Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Package[snmptrapd]/ensure) change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install snmptrapd' returned 100: Reading package lists...
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Package[snmptrapd]/ensure) Building dependency tree...
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Package[snmptrapd]/ensure) Reading state information...
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Package[snmptrapd]/ensure) Package snmptrapd is not available, but is referred to by another package.
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Package[snmptrapd]/ensure) This may mean that the package is missing, has been obsoleted, or
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Package[snmptrapd]/ensure) is only available from another source
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Package[snmptrapd]/ensure)
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Package[snmptrapd]/ensure) E: Package 'snmptrapd' has no installation candidate
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/File[snmptrapd.sysconfig]) Dependency Package[snmptrapd] has failures: true
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/File[snmptrapd.sysconfig]) Skipping because of failed dependencies
Dec  2 14:12:08 puppet-test puppet-agent[10599]: (/Stage[main]/Snmp/Service[snmptrapd]) Skipping because of failed dependencies
Dec  2 14:12:08 puppet-test puppet-agent[10599]: Applied catalog in 0.16 seconds

from puppet-snmp.

alaunay avatar alaunay commented on June 29, 2024

In the module file:
data/os/Debian/18.04.yaml

If you add a line:
snmp::snmptrapd_package_name: ~

snmptrapd won't be installed.

Not perfect though, I'd very much like not to touch the module :/

from puppet-snmp.

ubellavance avatar ubellavance commented on June 29, 2024

@alaunay have you tried putting this line in your relevant hiera yaml file? If you don't use hiera, you can set this in your manifest

snmptrapd_package_name        => undef,

from puppet-snmp.

alaunay avatar alaunay commented on June 29, 2024

Hello @ubellavance , yes, I tried. It seems it's superseded by the hiera data from the module. I did not try /that/ hard though, so I'm not 100% sure. I'm sure that by adding a 7.yaml in the same directory as 18.04 or 9, with the line above, it does the trick (Debian Wheezy does not have a separated snmptrapd package, and yes, I still have a few of those).

from puppet-snmp.

ubellavance avatar ubellavance commented on June 29, 2024

Maybe you should create a separate issue for that... I'm not a super-pro with Puppet but that sure looks weird.

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.