]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Add an ohai plugin to gather LLDP data
[chef.git] / cookbooks / hardware / recipes / default.rb
index 3d29ade8e9e9734bd346f70432de2322e7b5c7d8..751810a3e9faa5f63c98efafb6d6450230f7c8a0 100644 (file)
@@ -199,13 +199,17 @@ service "irqbalance" do
   supports :status => false, :restart => true, :reload => false
 end
 
-# Link Layer Discovery Protocol Daemon
 package "lldpd"
+
 service "lldpd" do
   action [:start, :enable]
   supports :status => true, :restart => true, :reload => true
 end
 
+ohai_plugin "lldp" do
+  template "lldp.rb.erb"
+end
+
 tools_packages = []
 status_packages = {}