Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a higher-level interface to snmpd #54

Closed
tlimoncelli opened this issue Jun 30, 2015 · 5 comments
Closed

Provide a higher-level interface to snmpd #54

tlimoncelli opened this issue Jun 30, 2015 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@tlimoncelli
Copy link

Most sites have simple needs that can be stated at a high level as:

  • read only:
    • "communitystring1", [list of cidr blocks]
    • "communitystring2", [list of cidr blocks]
  • read/write::
    • "communitystring3", [list of cidr blocks]
    • "communitystring4", [list of cidr blocks]

I propose a snmp::easy{} class that simply takes those values and generates the appropriate class parameters to snmp{}.

[Note: This will be super easy to implement in Puppet 4, but will make the module unusable by people that still use Puppet 3.x. When my site upgrades to Puppet 4, I'll be glad to contribute code.]

@razorsedge razorsedge added the enhancement New feature or request label Jul 1, 2015
@razorsedge razorsedge self-assigned this Jul 1, 2015
@razorsedge
Copy link
Contributor

If I keep ro_community and friends around and if #49 gets merged, will this solve the issue?

I have been debating about creating a Define['snmp::config'] that will piece together the snmpd.conf instead of fitting everything into one monolithic template.

@tlimoncelli
Copy link
Author

Yes, that'd be great!

My though with ::easy() (a terrible name, but you might have a better one) is that it would be high-level enough that it could configure some other snmp package. That is, if someone wrote something better than net-snmp, the ::easy() class would do the right thing.

@razorsedge
Copy link
Contributor

Hindsight being 20/20, I really wish that I had named several of my modules differently. This module is one of them. I should have named it razorsedge-netsnmp.

In a perfect world, I might have a razorsedge-snmp module that is a wrapper around a razorsedge-netsnmp module and a razorsedge-aixsnmp module. Then I could just call the wrapper ::snmp module with the generic parameters and have the different platforms do-the-right-thing(TM).

@TomOnTime
Copy link

That happens to us all.

@ghoneycutt
Copy link
Member

Closing as this issue is quite old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants