Skip to content

Instantly share code, notes, and snippets.

View ericcalabretta's full-sized avatar

Eric Calabretta ericcalabretta

  • Harness Software
  • San Francisco
View GitHub Profile
@ericcalabretta
ericcalabretta / knifebootstrap.md
Last active July 6, 2020 16:29
knife bootstrap example

Bootstrap chef client

To bootstrap a node we need to install install Chef-Client and configure Chef-Client to talk to Chef-Server. We can either use knife bootstrap or the validator bootstrap methods each with different stregths.

Knife Bootstrap

Requires SSH or winrm access to the node & access.

The nodes also need access to download.chef.io to download the chef-client.

@ericcalabretta
ericcalabretta / chef-zero-with-policyfile-archive.MD
Last active July 20, 2020 16:44
Using chef zero with policyfile archive

Using chef zero with policyfile archive

Prep Steps:

  1. Create the archive to share. This includes all the cookbooks, dependencies and config needed to run Chef-Client in a local mode. It's also versioned so you can track what exactly you ran.
git clone the desired cookbook 
move into directory
chef install
chef export -a path_to_cookbook_destination