Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Commit

Permalink
remove capistrano in favor of knife-solo alone
Browse files Browse the repository at this point in the history
dwradcliffe committed Oct 28, 2013
1 parent dd3c76c commit 8e5b918
Showing 11 changed files with 10 additions and 73 deletions.
1 change: 0 additions & 1 deletion Capfile

This file was deleted.

1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
source 'https://rubygems.org'

gem 'capistrano', '~> 2.0'
gem 'chef', '~> 10.18'
gem 'foodcritic', '~> 3.0'
gem 'fpm', '~> 0.3'
11 changes: 0 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -8,12 +8,6 @@ GEM
backports (3.3.5)
bunny (0.7.9)
cabin (0.6.1)
capistrano (2.15.5)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
chef (10.28.2)
bunny (>= 0.6.0, < 0.8.0)
erubis
@@ -83,10 +77,6 @@ GEM
mixlib-shellout (1.2.0)
moneta (0.6.0)
multi_json (1.8.2)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
@@ -127,7 +117,6 @@ PLATFORMS
ruby

DEPENDENCIES
capistrano (~> 2.0)
chef (~> 10.18)
foodcritic (~> 3.0)
fpm (~> 0.3)
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -11,19 +11,25 @@ Chef cookbooks and bootstrap scripts to configure and manage Rubygems.org AWS in
### Hacking in Vagrant

$ vagrant up
$ cap chef
$ knife solo cook vagrant@33.33.33.12 chef/nodes/dbmaster.vagrant.json -i ~/.vagrant.d/insecure_private_key -N vagrant-dbmaster
$ knife solo cook vagrant@33.33.33.10 chef/nodes/app.vagrant.json -i ~/.vagrant.d/insecure_private_key -N vagrant-app
$ knife solo cook vagrant@33.33.33.11 chef/nodes/balancer.vagrant.json -i ~/.vagrant.d/insecure_private_key -N vagrant-balancer

### Hacking on EC2

Add your user to the "users" databag (`chef/data_bags/users`).
You can look at the other users for the schema.
You can generate an encrypted password using `mkpasswd -m sha-512`.

Boot EC2 instances and get hostnames
Boot EC2 instances and boostrap them:

$ cap production bootstrap
$ cap prodcution chef
$ knife bootstrap -d chef-solo -x $DEPLOY_USER --sudo $SERVER

Run chef (modify these commands as you need to):

$ knife solo cook $DEPLOY_USER@ec2-54-245-133-190.us-west-2.compute.amazonaws.com chef/nodes/dbmaster.production.json -i $DEPLOY_SSH_KEY -N dbmaster01
$ knife solo cook $DEPLOY_USER@ec2-54-245-134-70.us-west-2.compute.amazonaws.com chef/nodes/app.production.json -i $DEPLOY_SSH_KEY -N app01
$ knife solo cook $DEPLOY_USER@rubygems.org chef/nodes/balancer.production.json -i $DEPLOY_SSH_KEY -N balancer02

## AMI's

35 changes: 0 additions & 35 deletions config/deploy.rb

This file was deleted.

11 changes: 0 additions & 11 deletions config/deploy/production.rb

This file was deleted.

1 change: 0 additions & 1 deletion config/deploy/staging.rb

This file was deleted.

9 changes: 0 additions & 9 deletions config/deploy/vagrant.rb

This file was deleted.

Binary file removed vendor/cache/capistrano-2.15.5.gem
Binary file not shown.
Binary file removed vendor/cache/net-scp-1.1.2.gem
Binary file not shown.
Binary file removed vendor/cache/net-sftp-2.1.2.gem
Binary file not shown.

0 comments on commit 8e5b918

Please sign in to comment.