Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/chef-server-api/files: server.rb
Date: Sat, 03 Jul 2010 12:42:16
Message-Id: 20100703124213.3937C2CE15@corvid.gentoo.org
1 hollow 10/07/03 12:42:13
2
3 Added: server.rb
4 Log:
5 initial ebuild, thanks to Gábor Vészi
6 (Portage version: 2.2_rc67/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 app-admin/chef-server-api/files/server.rb
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/server.rb?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/server.rb?rev=1.1&content-type=text/plain
13
14 Index: server.rb
15 ===================================================================
16 # Configuration File For Chef (chef-server)
17 #
18 # chef-server is a Merb application slice. By default it is configured to
19 # run via Thin, the default Merb adapter. It can be run as:
20 #
21 # chef-server -p 4000 -e production -a thin
22 #
23 # This starts up the RESTful Chef Server API on port 4000 in production mode
24 # using the thin server adapter.
25 #
26 # This file configures the behavior of the running server itself.
27 #
28 # Chef uses a Ruby DSL for configuration, and this file contains a few
29 # Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
30 # :value. Second, in Ruby, everything but false and nil (no quotes or other
31 # designations) is true, including true, the integer 0 and the string "false".
32 # So to set the value of a setting to false, write:
33 #
34 # some_setting false
35 #
36 # Third, Ruby class methods can be used, for example we tell the log to show
37 # the current time stamp with Chef::Log::Formatter.show_time, below.
38 #
39 # log_level specifies the level of verbosity for output.
40 # valid values are: :debug, :info, :warn, :error, :fatal
41
42 log_level :info
43
44 # log_location specifies where the server should log to.
45 # valid values are: a quoted string specifying a file, or STDOUT with
46 # no quotes. This is the application log for the Merb workers that get
47 # spawned.
48
49 log_location "/var/log/chef/server.log"
50
51 # ssl_verify_mode specifies if the REST client should verify SSL certificates.
52 # valid values are :verify_none, :verify_peer. The default Chef Server
53 # installation will use a self-generated SSL certificate so this should be
54 # :verify_none unless you replace the certificate.
55
56 ssl_verify_mode :verify_none
57
58 # chef_server_url specifies the URL for the server API. The process actually
59 # listens on 0.0.0.0:PORT.
60 # valid values are any HTTP URL.
61
62 chef_server_url "http://localhost:4000"
63
64 # cookbook_path is a Ruby array of filesystem locations to search for cookbooks.
65 # valid value is a string, or an array of strings of filesystem directory
66 # locations. This setting is searched beginning (index 0) to end in order. You
67 # might specify multiple search paths for cookbooks if you want to use an
68 # upstream source, and provide localised "site" overrides. These should come
69 # after the 'upstream' source. The default value, /var/lib/chef/cookbooks does
70 # not contain any cookbooks by default.
71 # See the Chef Wiki for more information about setting up a local repository
72 # for working on cookbooks.
73 # http://wiki.opscode.com/display/chef/Chef+Repository
74
75 cookbook_path [ "/var/lib/chef/cookbooks" ]
76 cookbook_tarball_path "/var/lib/chef/cookbook-tarballs"
77
78 # file_cache_path specifies where the client should cache cookbooks, server
79 # cookie ID, and openid registration data.
80 # valid value is any filesystem directory location.
81
82 file_cache_path "/var/lib/chef/cache"
83
84 # node_path specifies a location for where to find node-specific recipes.
85 # valid values are any filesystem direcory location.
86
87 node_path "/var/lib/chef/nodes"
88
89 # openid_store_path specifies a location where to keep openid nonces for clients.
90 # valid values are any filesystem directory location.
91 #
92 # NOTE: OpenID is deprecated and this option may not be used, kept for
93 # historical purposes.
94
95 openid_store_path "/var/lib/chef/openid/store"
96
97 # openid_store_path specifies a location where to keep openid nonces for clients.
98 # valid values are any filesystem directory location.
99 #
100 # NOTE: OpenID is deprecated and this option may not be used, kept for
101 # historical purposes and may be removed.
102
103 openid_cstore_path "/var/lib/chef/openid/cstore"
104
105 # role_path designates where the server should load role JSON and Ruby DSL
106 # files from.
107 # valid values are any filesystem directory location. Roles are a feature
108 # that allow you to easily reuse lists of recipes and attribute settings.
109 # Please see the Chef Wiki page for information on how to utilize the feature.
110 # http://wiki.opscode.com/display/chef/Roles
111 #
112 # NOTE: The role_path setting is deprecated on the chef-server, as the
113 # roles are now stored directly in CouchDB rather than on the filesystem.
114 # This option is kept for historical purposes and may be removed.
115
116 role_path "/var/lib/chef/roles"
117
118 # cache_options sets options used by the moneta library for local cache for
119 # checksums of compared objects.
120
121 cache_options({
122 :path => "/var/lib/chef/cache/checksums",
123 :skip_expires => true
124 })
125
126 # Mixlib::Log::Formatter.show_time specifies whether the chef-client log should
127 # contain timestamps.
128 # valid values are true or false (no quotes, see above about Ruby idioms). The
129 # printed timestamp is rfc2822, for example:
130 # Fri, 31 Jul 2009 19:19:46 -0600
131
132 Mixlib::Log::Formatter.show_time = true
133
134 # The following options configure the signing CA so it can be read by
135 # non-privileged user for the server daemon.
136
137 signing_ca_path "/etc/chef/certificates"
138 signing_ca_cert "/etc/chef/certificates/cert.pem"
139 signing_ca_key "/etc/chef/certificates/key.pem"
140
141 sandbox_path "/var/lib/chef/sandboxes"
142 checksum_path "/var/lib/chef/checksums"
143
144 openid_store_path "/var/lib/chef/openid/store"
145 search_index_path "/var/lib/chef/search_index"