]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/templates/default/client.rb.erb
Add organisation name to chef URLs
[chef.git] / cookbooks / chef / templates / default / client.rb.erb
index 6c9113968a2867e3a73ef11d616db08874711936..cdc09b2b26cab3d0c75a53c01ae97b8c4b118d24 100644 (file)
@@ -9,10 +9,6 @@
 
 Encoding.default_external = Encoding::UTF_8
 
-# Load supporting code for report handlers
-
-require "/etc/chef/report"
-
 # Log at level info
 
 log_level :info
@@ -27,7 +23,15 @@ ssl_verify_mode :verify_peer
 
 # Set the URL for the chef server
 
-chef_server_url "https://chef.openstreetmap.org"
+chef_server_url "https://chef.openstreetmap.org/organizations/openstreetmap"
+
+# Make our plugins visible to ohai
+
+Ohai::Config[:plugin_path] << "<%= node[:ohai][:plugin_dir] %>"
+
+# Load supporting code for report handlers
+
+require "/etc/chef/report"
 
 # Create report handler
 
@@ -37,7 +41,3 @@ email_handler = Chef::Handler::Email.new(:to => "tom@compton.nu")
 
 exception_handlers << email_handler
 report_handlers << email_handler
-
-# Make our plugins visible to ohai
-
-Ohai::Config[:plugin_path] << "/etc/chef/ohai"