Stuff related to the CHEF Funadamentals Training Course.
This repository will help you play around with CHEF. You will be able to spin-up a bunch of VMs, using vagrant. All needed tools plus the example recipes will be available in the VMs.
-
notes_raw.txt
: some raw notes from CHEF Funadamentals Training training. -
chef/
: CHEF recipies and examples. This directory will be mounted under/chef
on all VMs. -
vms/
: a set of Vagrant VMs that can run the course. To spin-up any of these VMs, you can runvagrant up <vm_name>
under this directory. Available VMs as per the list below:- devbox: workstation VM with ChefDK that manages the chef-code.
- node1: VM with client tools installed (i.e.
chef-apply
)
Objective: customise /etc/motd
file on a linux node.
Prerequisites:
- binary
chef-apply
needs to be installed on the node sudo chef-apply
should be privilege granted for the user- the actuall chef-recipe (source file) needs to be locally available
Tools: chef-apply
Try example #1 ...
-
Enable debug mode in
vagrant up
for VMs. -
Add more training examples.
-
Import custom folder per VM (for own recipies/customization files, etc.).
-
Avoid hard-coding Chef-Server rpm URL; use an equivalent of the following instead:
$ curl 'https://www.opscode.com/chef/metadata?v=12&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64'
url https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-12.3.0-1.el6.x86_64.rpm
md5 c19fefcb3d033107e9fbdb3839312584
sha256 4b7c846a9ad93564cc203a5ac99890431f7d6ad159c424aa89827fd772c9881d
- Possibly use Ubuntu for the devbox/workstation VM.