Linux: sudo yum install git
Mac: Download
Windows: Download
- posh-git: A set of PowerShell scripts that provide Git/PowerShell integration
- Download posh-git
docs.chef.io installation instructions
Set Up a Sane Ruby Cookbook Authoring Environment for Chef on Mac OS X, Linux and Windows
echo 'export PATH="/opt/chefdk/embedded/bin:$PATH"' >> $HOME/.bash_profile
which ruby && ruby -v
chef gem install kitchen-vagrant
- atom plugins:
- vim-mode
- language-chef
- linter
- linter-foodcritic
- linter-rubocop
- remote-sync
- linter-package-json-validator
- colorful-json
chef generate cookbook your-cookbook
kitchen list
berks install
if applicable
---
driver:
name: vagrant
provisioner:
name: chef_zero
# Uncomment the following verifier to leverage Inspec instead of Busser (the
# default verifier)
# verifier:
# name: inspec
platforms:
- name: ubuntu-14.04
- name: centos-7.1
suites:
- name: default
run_list:
- recipe[your-cookbook::default]
attributes:
driver:
network:
- ["forwarded_port", {guest: 8080, host: 8080}]
customize:
memory: 2048
cpus: 2
kitchen list
kitchen converge centos
git status
git add .
git commit -m "initial commit of cookbook"