Use new syntax to configure ohai plugin path
authorTom Hughes <tom@compton.nu>
Mon, 9 May 2016 20:49:38 +0000 (21:49 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 9 May 2016 20:49:38 +0000 (21:49 +0100)
cookbooks/chef/templates/default/client.rb.erb

index f151c7d..65bf700 100644 (file)
@@ -27,7 +27,7 @@ chef_server_url "https://chef.openstreetmap.org/organizations/openstreetmap"
 
 # Make our plugins visible to ohai
 
-Ohai::Config[:plugin_path] << "<%= node[:ohai][:plugin_dir] %>"
+ohai.plugin_path << "<%= node[:ohai][:plugin_dir] %>"
 
 # Load supporting code for report handlers