Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Untitled

By: a guest on Feb 12th, 2010  |  syntax: None  |  size: 0.85 KB  |  hits: 69  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. class snmp::test inherits snmp::server {
  2.   import "common"
  3.  
  4.   file {
  5.     "/etc/snmp/conf.d":
  6.       ensure => "directory";
  7.  
  8.     "snmpd.header.conf":
  9.       source  => "puppet://$server/snmp/snmpd.conf.$domain",
  10.       path => "/etc/snmp/snmpd.header.conf";
  11.  
  12.     "omreport_checkraid.conf":
  13.       path => "/etc/snmp/conf.d/omreport_checkraid.conf",
  14.       content => "exec raid_check /root/scripts/omreport_checkraid.pl
  15. ",
  16.       require => File["/etc/snmp/conf.d"];
  17.    
  18.     "omreport_checksystem.conf":
  19.       path => "/etc/snmp/conf.d/omreport_checksystem.conf",
  20.       content => "exec system_check /root/scripts/omreport_checksystem.pl
  21. ",
  22.       require => File["/etc/snmp/conf.d"];
  23.   }
  24.  
  25.   concatenated_file {
  26.         "/etc/snmp/snmpd.conf.new":
  27.                 header => "/etc/snmp/snmpd.conf",
  28.                 dir => "/etc/snmp/conf.d",
  29.   }
  30. }