Skip to content

Instantly share code, notes, and snippets.

@fujin
Created February 6, 2012 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fujin/1754714 to your computer and use it in GitHub Desktop.
Save fujin/1754714 to your computer and use it in GitHub Desktop.
My snmpd cookbook for windows
windows_feature "SNMP" do
action :install
end
windows_feature "WMISnmpProvider" do
action :install
end
# setup some variables
#
# now configure SNMP via the registry
# these values were determined from looking here:
# HKLM\SYSTEM\CurrentControlSet\services\SNMP\Parameters
snmp_values = {
:sysContact => node[:snmpd][:sysContact],
:sysLocation => node.chef_environment
}
log "going to configure snmpd registry with #{snmp_values}"
windows_registry 'HKLM\SYSTEM\CurrentControlSet\services\SNMP\Parameters\RFC1156Agent' do
values snmp_values
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment