1 |
hollow 10/07/03 12:47:24 |
2 |
|
3 |
Added: webui.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-webui/files/webui.rb |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-webui/files/webui.rb?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-webui/files/webui.rb?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: webui.rb |
15 |
=================================================================== |
16 |
# Configuration File For Chef (chef-server-webui) |
17 |
# |
18 |
# chef-server-webui is a Merb application slice. By default it is configured to |
19 |
# run via Thin, the default Merb adapter. This should be run as: |
20 |
# |
21 |
# chef-server-webui -p 4040 -e production -a thin |
22 |
# |
23 |
# This starts up the Chef Server WebUI on port 4040 in production mode using |
24 |
# 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-webui.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 |
# file_cache_path specifies where the client should cache cookbooks, server |
65 |
# cookie ID, and openid registration data. |
66 |
# valid value is any filesystem directory location. |
67 |
|
68 |
file_cache_path "/var/lib/chef/cache" |
69 |
|
70 |
# openid_store_path specifies a location where to keep openid nonces for clients. |
71 |
# valid values are any filesystem directory location. |
72 |
# |
73 |
# NOTE: OpenID is deprecated and this option may not be used, kept for |
74 |
# historical purposes. |
75 |
|
76 |
openid_store_path "/var/lib/chef/openid/store" |
77 |
|
78 |
# openid_store_path specifies a location where to keep openid nonces for clients. |
79 |
# valid values are any filesystem directory location. |
80 |
# |
81 |
# NOTE: OpenID is deprecated and this option may not be used, kept for |
82 |
# historical purposes and may be removed. |
83 |
|
84 |
openid_cstore_path "/var/lib/chef/openid/cstore" |
85 |
|
86 |
# Mixlib::Log::Formatter.show_time specifies whether the chef-client log should |
87 |
# contain timestamps. |
88 |
# valid values are true or false (no quotes, see above about Ruby idioms). The |
89 |
# printed timestamp is rfc2822, for example: |
90 |
# Fri, 31 Jul 2009 19:19:46 -0600 |
91 |
|
92 |
Mixlib::Log::Formatter.show_time = true |
93 |
|
94 |
signing_ca_cert "/etc/chef/certificates/cert.pem" |
95 |
signing_ca_key "/etc/chef/certificates/key.pem" |
96 |
|
97 |
# web_ui_client_name specifies the user to use when accessing the Chef |
98 |
# Server API. By default this is already set to "chef-webui". |
99 |
# |
100 |
# This user gets created by the chef-server and stored in CouchDB the |
101 |
# first time the server starts up if the user and key don't exist. |
102 |
|
103 |
web_ui_client_name "chef-webui" |
104 |
|
105 |
# web_ui_admin_user_name and web_ui_admin_default_password specify the |
106 |
# user and password that a human can use to initially log into the |
107 |
# chef-server-webui when it starts. The default value for the user is 'admin' |
108 |
# and the default password is'p@ssw0rd1' should be changed immediately on |
109 |
# login. The web form will display the password reset page on first login. |
110 |
|
111 |
web_ui_admin_user_name "admin" |
112 |
web_ui_admin_default_password "p@ssw0rd1" |
113 |
|
114 |
# web_ui_key specifics the file to use for authenticating with the Chef |
115 |
# Server API. By default this is already set to "/etc/chef/webui.pem". |
116 |
# |
117 |
# This file gets created by the chef-server and the public key stored in |
118 |
# CouchDB the first time the server starts up if the user and key don't |
119 |
# exist. |
120 |
|
121 |
web_ui_key "/etc/chef/webui.pem" |