~ubuntu-branches/ubuntu/karmic/chef/karmic

« back to all changes in this revision

Viewing changes to chef-server-slice/README.rdoc

  • Committer: Bazaar Package Importer
  • Author(s): Joshua Timberman
  • Date: 2009-08-12 12:18:48 UTC
  • Revision ID: james.westby@ubuntu.com-20090812121848-yl38hpd7nfsl51xz
Tags: upstream-0.7.8
ImportĀ upstreamĀ versionĀ 0.7.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
= Chef
 
2
 
 
3
= DESCRIPTION:
 
4
 
 
5
Chef is a configuration management tool designed to bring automation to your entire infrastructure. 
 
6
 
 
7
The Chef Wiki is the definitive source of user documentation. 
 
8
 
 
9
* http://wiki.opscode.com/display/chef/Home
 
10
 
 
11
This README focuses on developers who want to modify Chef source code. For users who just want to run the latest and greatest Chef development version in their environment, see:
 
12
 
 
13
* http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD
 
14
 
 
15
= DEVELOPMENT:
 
16
 
 
17
Before working on the code, if you plan to contribute your changes, you need to read the Opscode Contributing document.
 
18
 
 
19
* http://wiki.opscode.com/display/opscode/Contributing
 
20
 
 
21
You will also need to set up the repository with the appropriate branches. We document the process on the Chef Wiki.
 
22
 
 
23
* http://wiki.opscode.com/display/opscode/Working+with+Git
 
24
 
 
25
Once your repository is set up, you can start working on the code. We do use BDD/TDD with RSpec and Cucumber, so you'll need to get a development environment running.
 
26
 
 
27
= ENVIRONMENT:
 
28
 
 
29
In order to have a development environment where changes to the Chef code can be tested, we'll need to install a few things after setting up the Git repository.
 
30
 
 
31
== Requirements:
 
32
 
 
33
Install these via your platform's preferred method; for example apt, yum, ports, emerge, etc.
 
34
 
 
35
* Git
 
36
* CouchDB
 
37
* libxml2 development package (for webrat)
 
38
* libxslt develoment package (for webrat)
 
39
 
 
40
Install the following RubyGems.
 
41
 
 
42
* ohai
 
43
* rake
 
44
* rspec
 
45
* cucumber
 
46
* webrat
 
47
* merb-core
 
48
* roman-merb_cucumber
 
49
 
 
50
Ohai is also by Opscode and available on GitHub, http://github.com/opscode/ohai/tree/master.
 
51
 
 
52
roman-merb_cucumber is available from GitHub:
 
53
 
 
54
  gem install --source http://gems.github.com/ roman-merb_cucumber
 
55
 
 
56
== Starting the Environment:
 
57
 
 
58
Once everything is installed, run the dev:features rake task. Since the features do integration testing, root access is required.
 
59
 
 
60
  sudo rake dev:features
 
61
 
 
62
The dev:features task:
 
63
 
 
64
* Installs chef, chef-server, chef-server-slice gems. It will fail if required gems above are missing.
 
65
* Starts chef-server on ports 4000 and 4001.
 
66
* Starts chef-indexer.
 
67
* Starts CouchDB on port 5984.
 
68
* Starts the stompserver on port 61613.
 
69
 
 
70
You'll know its running when you see:
 
71
 
 
72
   ~ Activating slice 'ChefServerSlice' ...
 
73
  merb : worker (port 4000) ~ Starting Mongrel at port 4000
 
74
  merb : worker (port 4000) ~ Successfully bound to port 4000
 
75
  merb : worker (port 4001) ~ Starting Mongrel at port 4001
 
76
  merb : worker (port 4001) ~ Successfully bound to port 4001
 
77
 
 
78
You'll want to leave this terminal running the dev environment.
 
79
 
 
80
== Web Interface:
 
81
 
 
82
With the dev environment running, you can now access the web interface via http://localhost:4000/. Supply an OpenID to log in.
 
83
 
 
84
== Spec testing:
 
85
 
 
86
We use RSpec for unit/spec tests.
 
87
 
 
88
  rake spec
 
89
 
 
90
This doesn't actually use the development environment, because it does the testing on all the Chef internals. For integration/usage testing, we use Cucumber features.
 
91
 
 
92
== Integration testing:
 
93
 
 
94
We test integration with Cucumber. The available feature tests are rake tasks:
 
95
 
 
96
  rake features                            # Run Features with Cucumber
 
97
  rake features:api                        # Run Features with Cucumber
 
98
  rake features:client                     # Run Features with Cucumber
 
99
  rake features:provider:package:macports  # Run Features with Cucumber
 
100
  rake features:provider:remote_file       # Run Features with Cucumber
 
101
  rake features:search                     # Run Features with Cucumber
 
102
 
 
103
= LINKS:
 
104
 
 
105
Source:
 
106
 
 
107
* http://github.com/opscode/chef/tree/master
 
108
 
 
109
Tickets/Issues:
 
110
 
 
111
* http://tickets.opscode.com/
 
112
 
 
113
Documentation:
 
114
 
 
115
* http://wiki.opscode.com/display/chef/Home/
 
116
 
 
117
= LICENSE:
 
118
 
 
119
Chef - A configuration management system
 
120
 
 
121
Author:: Adam Jacob (<adam@opscode.com>)
 
122
Copyright:: Copyright (c) 2008, 2009 Opscode, Inc.
 
123
License:: Apache License, Version 2.0
 
124
 
 
125
Licensed under the Apache License, Version 2.0 (the "License");
 
126
you may not use this file except in compliance with the License.
 
127
You may obtain a copy of the License at
 
128
 
 
129
    http://www.apache.org/licenses/LICENSE-2.0
 
130
 
 
131
Unless required by applicable law or agreed to in writing, software
 
132
distributed under the License is distributed on an "AS IS" BASIS,
 
133
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
134
See the License for the specific language governing permissions and
 
135
limitations under the License.