Skip to content

Commit

Permalink
Forgot the stash!
Browse files Browse the repository at this point in the history
  • Loading branch information
mdkent committed Jul 27, 2011
1 parent af27335 commit 2f24010
Show file tree
Hide file tree
Showing 36 changed files with 25 additions and 1,851 deletions.
19 changes: 11 additions & 8 deletions README.md
Expand Up @@ -42,6 +42,9 @@ Getting Started

Assuming root access on a fresh, basic, CentOS 5.6 install:


!! setenforce 0

1. Install the EPEL repositories for git

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Expand All @@ -53,9 +56,9 @@ Assuming root access on a fresh, basic, CentOS 5.6 install:

This should install all the dependencies to build ruby

3. Chose a ruby version and install, 1.9.2-p180 is the default for the bootstrap.
3. Chose a ruby version and install, 1.9.2-p290 is the default for the bootstrap.

rvm install 1.9.2-p180
rvm install 1.9.2-p290

> By default rvm will connect to the internet to download the ruby packages
> to compile. If this is a problem you should install your own copy of rvm
Expand All @@ -64,7 +67,7 @@ Assuming root access on a fresh, basic, CentOS 5.6 install:
4. Next we use rvm to create an isolated gemset for Chef and install it

rvm 1.9.2-p180@chef gem install chef -v 0.9.16
rvm 1.9.2-p290@chef gem install chef -v 0.10.2

5. Now we can move on to the actual Chef install. First we need a temporary
config for chef-solo to extract and execute our bootstrap cookbooks:
Expand Down Expand Up @@ -99,20 +102,20 @@ Assuming root access on a fresh, basic, CentOS 5.6 install:
or, by picking the right url to make chef-solo happy (open-uri doesn't like
the github redirect), reference them directly via

http://cloud.github.com/downloads/mdkent/chef-el-rvm-bootstrap/chef-el-rvm-bootstrap-0.9.16-1.tar.gz
http://cloud.github.com/downloads/mdkent/chef-el-rvm-bootstrap/chef-el-rvm-bootstrap-0.10.2-1.tar.gz

8. We are all set to run the Chef bootstrap. chef-solo can be invoked with
local files:

rvm 1.9.2-p180@chef exec chef-solo -c solo.rb \
rvm 1.9.2-p290@chef exec chef-solo -c solo.rb \
-j chef-server-api-webui.json \
-r chef-el-rvm-bootstrap-0.9.16-1.tar.gz
-r chef-el-rvm-bootstrap-0.10.2-1.tar.gz

or looking at remote urls:

rvm 1.9.2-p180@chef exec chef-solo -c solo.rb \
rvm 1.9.2-p290@chef exec chef-solo -c solo.rb \
-j https://github.com/mdkent/chef-el-rvm-bootstrap/raw/master/chef-server-api-webui.json \
-r http://cloud.github.com/downloads/mdkent/chef-el-rvm-bootstrap/chef-el-rvm-bootstrap-0.9.16-1.tar.gz
-r http://cloud.github.com/downloads/mdkent/chef-el-rvm-bootstrap/chef-el-rvm-bootstrap-0.10.2-1.tar.gz

Assuming chef-solo completes without incident you should now have a fully
configured and functioning chef server or client.
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -2,7 +2,7 @@ require 'rake/packagetask'
require 'find'

PACKAGE_NAME = "chef-el-rvm-bootstrap"
PACKAGE_VERSION="0.9.16-1"
PACKAGE_VERSION="0.10.2-1"
PACKAGE_FULL="#{PACKAGE_NAME}-#{PACKAGE_VERSION}"
PACKAGE_DIR = "tmp"
INCLUDE_FILES = "**/*"
Expand Down
2 changes: 1 addition & 1 deletion apache2/definitions/web_app.rb
Expand Up @@ -20,7 +20,7 @@
#

define :web_app, :template => "web_app.conf.erb" do

application_name = params[:name]

include_recipe "apache2"
Expand Down
6 changes: 3 additions & 3 deletions chef-client.json
@@ -1,7 +1,7 @@
{
"chef_rvm": {
"chef_client": {
"server_url": "http://localhost:4000",
"rvm_ruby": "1.9.2-p180@chef"
"rvm_ruby": "1.9.2-p290@chef"
},
"run_list": [ "recipe[chef_rvm::client]" ]
"run_list": [ "recipe[chef-client::config]", "recipe[chef-client::service]" ]
}
6 changes: 3 additions & 3 deletions chef-server-api-webui-proxy.json
@@ -1,8 +1,8 @@
{
"chef_rvm": {
"chef_server": {
"server_url": "http://localhost:4000",
"webui_enabled": true,
"rvm_ruby": "1.9.2-p180@chef"
"rvm_ruby": "1.9.2-p290@chef"
},
"run_list": [ "recipe[chef_rvm::server_proxy]" ]
"run_list": [ "recipe[chef-server::rubygems-install]", "recipe[chef-server::apache-proxy]" ]
}
6 changes: 3 additions & 3 deletions chef-server-api-webui.json
@@ -1,8 +1,8 @@
{
"chef_rvm": {
"chef_server": {
"server_url": "http://localhost:4000",
"webui_enabled": true,
"rvm_ruby": "1.9.2-p180@chef"
"rvm_ruby": "1.9.2-p290@chef"
},
"run_list": [ "recipe[chef_rvm::server]" ]
"run_list": [ "recipe[chef-server::rubygems-install]" ]
}
6 changes: 3 additions & 3 deletions chef-server-api.json
@@ -1,7 +1,7 @@
{
"chef_rvm": {
"chef_server": {
"server_url": "http://localhost:4000",
"rvm_ruby": "1.9.2-p180@chef"
"rvm_ruby": "1.9.2-p290@chef"
},
"run_list": [ "recipe[chef_rvm::server]" ]
"run_list": [ "recipe[chef-server::rubygems-install]" ]
}
45 changes: 0 additions & 45 deletions chef_rvm/attributes/default.rb

This file was deleted.

30 changes: 0 additions & 30 deletions chef_rvm/attributes/server_proxy.rb

This file was deleted.

20 changes: 0 additions & 20 deletions chef_rvm/metadata.rb

This file was deleted.

117 changes: 0 additions & 117 deletions chef_rvm/recipes/client.rb

This file was deleted.

25 changes: 0 additions & 25 deletions chef_rvm/recipes/client_service.rb

This file was deleted.

Empty file removed chef_rvm/recipes/default.rb
Empty file.
25 changes: 0 additions & 25 deletions chef_rvm/recipes/delete_validation.rb

This file was deleted.

0 comments on commit 2f24010

Please sign in to comment.