]> git.openstreetmap.org Git - chef.git/blob - cookbooks/chef/templates/default/client.rb.erb
Update chef client to 15.10.12
[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 # Accept the license
13
14 chef_license "accept"
15
16 # Log at level info
17
18 log_level :info
19
20 # Set the location of the log file
21
22 log_location "/var/log/chef/client.log"
23
24 # Set the node name
25
26 node_name "<%= node.name %>"
27
28 # Verify SSL certificates
29
30 ssl_verify_mode :verify_peer
31
32 # Set the URL for the chef server
33
34 chef_server_url "https://chef.openstreetmap.org/organizations/openstreetmap"
35
36 # Make our plugins visible to ohai
37
38 ohai.plugin_path << "<%= node[:ohai][:plugin_dir] %>"
39
40 # Enable some optional ohai plugins
41
42 ohai.optional_plugins = %w[Passwd]
43
44 # Load supporting code for report handlers
45
46 require "/etc/chef/report"
47
48 # Create report handler
49
50 email_handler = Chef::Handler::Email.new(:to => ["tom@compton.nu", "openstreetmap@firefishy.com"])
51
52 # Configure report handlers
53
54 exception_handlers.delete_if { |h| h.is_a?(Chef::Handler::Email) } << email_handler
55 report_handlers.delete_if { |h| h.is_a?(Chef::Handler::Email) } << email_handler