Skip to content

Instantly share code, notes, and snippets.

@skamithi
Last active December 17, 2015 15:19
Show Gist options
  • Save skamithi/5631289 to your computer and use it in GitHub Desktop.
Save skamithi/5631289 to your computer and use it in GitHub Desktop.
Setting up Chef-Solo
*/.gitkeep
tmp/

Notes on how I setup chef-solo. Lots of different sites/forums were used to piece this information together. Want to keep a record of how I did this so I never have to spend hours figuring it out again :)

Did the following on Ubuntu 12.04. I prefer to use RVM where possible.

  • Install RVM

  • Install Git

  • Install latest 1.9. For now 2.0 seems to be problematic and incompatible with a couple of key Gems

  • install bundler pry, pry-docs, vagrant into the global gemset

      git/my-chef-repo# gem install bundler pry pry-docs vagrant
    
  • Create a Git dev folder. In my case its '~/development/git'

  • Create a folder under the git dev dir called 'my-chef-solo-repo'

  • initialize this folder for git use

      git/my-chef-repo# git init .
    
  • add ruby version files rvm use 1.9.3@global --ruby-version

  • configure .gitignore file. See another files attached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment