]> git.openstreetmap.org Git - chef.git/blob - cookbooks/chef/templates/default/client.rb.erb
Make sure the Passwd ohai plugin is enabled
[chef.git] / cookbooks / chef / templates / default / client.rb.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 # Configuration File For Chef (chef-client)
4 #
5 # The chef-client program will connect the local system to the specified
6 # server URLs through a RESTful API to retrieve its configuration.
7
8 # Force the default external encoding to UTF-8
9
10 Encoding.default_external = Encoding::UTF_8
11
12 # Log at level info
13
14 log_level :info
15
16 # Set the location of the log file
17
18 log_location "/var/log/chef/client.log"
19
20 # Set the node name
21
22 node_name "<%= node.name %>"
23
24 # Verify SSL certificates
25
26 ssl_verify_mode :verify_peer
27
28 # Set the URL for the chef server
29
30 chef_server_url "https://chef.openstreetmap.org/organizations/openstreetmap"
31
32 # Make our plugins visible to ohai
33
34 ohai.plugin_path << "<%= node[:ohai][:plugin_dir] %>"
35
36 # Enable some optional ohai plugins
37
38 ohai.optional_plugins = %w[Passwd]
39
40 # Load supporting code for report handlers
41
42 require "/etc/chef/report"
43
44 # Create report handler
45
46 email_handler = Chef::Handler::Email.new(:to => ["tom@compton.nu", "openstreetmap@firefishy.com"])
47
48 # Configure report handlers
49
50 exception_handlers.delete_if { |h| h.is_a?(Chef::Handler::Email) } << email_handler
51 report_handlers.delete_if { |h| h.is_a?(Chef::Handler::Email) } << email_handler