Code Monkey home page Code Monkey logo

chef-solo-bootstrap's Introduction

DESCRIPTION:

Uses the Chef configuration management tool, specifically chef-solo to configure a remote server. This is the simplest way to get started with using Chef.

GETTING STARTED:

  • apt-get install -y git-core

  • cd /tmp

  • git clone git://github.com/brightmix/chef-solo-bootstrap.git

  • cd /tmp/chef-solo-bootstrap

  • git submodule init

  • git submodule update

  • sh chef_bootstrap.sh

  • set a fully qualified domain name in /etc/hosts (e.g. foo.brightmix.com)

  • chef-solo -l debug -c config/solo.rb -j config/chef.json

REQUIREMENTS:

  • Make sure Chef is installed on the remote server you want to configure. See chef_bootstrap.rb to help.

  • Modify config/chef.json to specify the recipes from the ‘cookbooks’ dir you want to run

  • Run with ‘rake cook [email protected]

HOW IT WORKS:

When you run the ‘rake cook’ task it will:

  • rsync this entire directory to the location specified in ‘REMOTE_CHEF_PATH’ in the Rakefile

  • Run chef-solo on the remote machine using the config files in config/ and your cookbooks.

  • Run the ‘test’ recipe which creates the dir ‘/tmp/foobarbaz’ on the remote machine.

  • Sprinkles magic dust on your server…

CREDITS:

Most of the ideas and code here was cribbed from probablyinteractive.com/2009/3/29/Amazon%20EC2%20+%20Chef%20=%20Mmmmm.html. Just updated to match my understanding of the most recent config. My thanks to the author for giving me an excellent headstart.

chef-solo-bootstrap's People

Contributors

grempe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.