Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rake tasks to admin AWS/EC2 deployed apps.
Ruby
tree: 066537997b

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/boucher
spec
template @ 1e78a05
.gitignore
.gitmodules
.rvmrc
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
boucher.gemspec

README.md

boucher logo

Boucher

...

Getting Started

Creating a base image

  1. Launch new instance: Ubuntu Server 12.04.1 LTS

    • Create a new key saved in your infrastructure project
    • Be sure to add a security group that opens port 22 for SSH
  2. Update config/env/shared.rb

    • :aws_key_filename - name of the .pem file you just created and saved in the project root
    • :aws_region - which AWS region did you use?
    • :aws_access_key_id and aws_secret_access_key - available in the AWS Management Console under Security Credentials
  3. List servers

    rake servers:list

  4. SSH into new server. (:username config must be 'ubunutu' at this point)

    rake servers:ssh[]

  5. Create new poweruser (unless you like 'unubutu' as your poweruser).

    sudo adduser sudo adduser sudo sudo mkdir /home//.ssh sudo cp .ssh/authorized_keys /home//.ssh/ sudo chown -R : /home//.ssh

  6. Logout. Update config :username. Log back in.

    rake servers:ssh[]

  7. Delete the ubuntu user.

    deluser ubuntu

  8. Enable sudo without typing password

    sudo visudo

    add the following line at the end of the file:

    ALL=(ALL) NOPASSWD: ALL

  9. Install required pacakges and gems.

    sudo apt-get update sudo apt-get install ruby1.9.1 ruby1.9.1-dev git gcc make libxml2-dev libxslt1-dev sudo apt-get upgrade sudo gem install bundler chef

  10. Checkout your infrstructure repo. (Yes. You should push your repo even in this early stage.) If you use github, you'll have to generate ssh keys and add them to the github repo.

    cd ~/.ssh ssh-keygen -t rsa -C "your_email@youremail.com"

    Copy id_rsa.pub to your github user's ssh keys

    cd .. git clone git@github.com:/.git infrastructure

  11. Customize to your liking.

    • install your preferred vim dot files
    • etc...

Usage

...

License

Copyright (c) 2012 8th Light, Inc. MIT License

Something went wrong with that request. Please try again.