https://github.com/fnichol/capstrap
Bootstrapping Ubuntu with chef-solo using Capistrano.
https://github.com/fnichol/capstrap
Last synced: about 2 months ago
JSON representation
Bootstrapping Ubuntu with chef-solo using Capistrano.
- Host: GitHub
- URL: https://github.com/fnichol/capstrap
- Owner: fnichol
- License: mit
- Created: 2010-08-30T04:41:22.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2012-02-19T19:42:45.000Z (over 13 years ago)
- Last Synced: 2025-04-10T09:57:02.483Z (2 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# capstrap (Abandoned)
## Notice
**This project has fallen out of use by the author and thus exists in an abandoned state.**
A command to remotely install git, rvm, ruby, and chef-solo using capistrano.
To get started, install capstrap:
gem install capstrap
capstrap assumes you are operating as *root* so you might want to drop in
your ssh key to root's *authorized_keys*:ssh root@zland '(if [ ! -d "${HOME}/.ssh" ]; then \
mkdir -m 0700 -p ${HOME}/.ssh; fi; \
cat - >> .ssh/authorized_keys)' < ${HOME}/.ssh/id_dsa.pubTo install a baseline RVM/ruby environment (*ree-1.8.7* is default):
capstrap ruby root@zland
To use a custom RVM ruby:
capstrap ruby root@zland --ruby=ruby-1.8.7
To install the *chef* gem:
capstrap chef root@zland
To install a chef cookbooks repository and chef configuration:
capstrap solo root@zland \
--cookbooks-repo=git://github.com/fnichol/chef-repo.git \
--config-repo=git://github.com/fnichol/chef-dna-spike.gitTo override the default cookbooks and configuration paths:
capstrap solo root@zland \
--cookbooks-repo=git://github.com/fnichol/chef-repo.git \
--cookbooks-path=/opt/chef \
--config-repo=git://github.com/fnichol/chef-dna-spike.git \
--config-path=/opt/chef/configTo use a
rake update
instead of the defaultgit submodule init && git submodule update
after a git update:capstrap execute root@zland \
--cookbooks-rake-update \
--config-rake-updateTo execute a chef configuration (the full monty):
capstrap execute root@zland \
--cookbooks-repo=git://github.com/fnichol/chef-repo.git \
--config-repo=git://github.com/fnichol/chef-dna-spike.gitTo set some other crazy configuration (the full monty with cheese):
capstrap execute root@zland \
--ruby=ruby-1.8.7 \
--cookbooks-repo=git://github.com/fnichol/chef-repo.git \
--cookbooks-path=/opt/chef \
--config-repo=git://github.com/fnichol/chef-dna-spike.git \
--config-path=/opt/chef/configTo pull new cookbook/configuration updates and run chef-solo:
capstrap update root@zland
To save config options to a yaml file to be read by capstrap:
cat > "$HOME/.capstraprc" <