chef-dk - Does not currently support Windows or Mac OSX earlier than Mavericks
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
which bundle && bundle -v
chef gem install kitchen-vagrant
berks cookbook pipeline
cd pipeline
depends 'jenkins'
berks install
include_recipe 'jenkins::java'
include_recipe 'jenkins::master'
suites:
- name: default
run_list: pipeline::default
attributes:
jenkins:
master:
install_method: package
driver_config:
network:
- ["forwarded_port", {guest: 8080, host: 8080}]
customize:
memory: 2048
cpus: 2
kitchen list
kitchen converge centos
http://localhost:8080
git status
git add .
git commit -m "initial commit of pipeline cookbook"