Chef Cheat Sheet

  



Learn Chef Rally (learn.chef.io) installfromsource.rb recipe (github.com) 0 Comments for this cheatsheet. All cheat sheets, round-ups, quick reference cards, quick reference guides and quick reference sheets in one page. Food is entering a revolutionary era. Chefs are becoming superstars, restaurants are hotter than nightclubs, and cooking-related shows are saturating the airwaves. For those that dream of entering the culinary field, there are countless ways to do so. From cooking in a restaurant to writing about food to owning a catering company, the careers in.

The big data repository known as Chef Server is manipulated with a tool called knife. The general (simplified) syntax for this tool is:

Top chef game cheat sheet

The category can be one of: environment, client, node, data bag, cookbook, … The full list can be found here.

Top Chef Game Cheat Sheet

The command (usually) is one of create, list, show, edit or delete. There are more commands, though, depending on what is being requested through knife.

On the cheat sheat itself, let’s start with some classics:

Nodes and Environments

Data Bags

As you may already know, data bags are stored in a 2 layer structure, thus allowing for simple categorization (e.g. grouping data bags by service or by environment). Some simple commands dealing with them may be:

One can create a data bag with the editor or by providing a source file:

The file may look like:

Finding nodes and environments

Very basic stuff:

The node search above works if we know something about the node name; this may not always be the case. In an ideal scenario, nodes have names prefixed with the environment they belong to – this makes listing nodes by environment a trivial task by using some construct derived from the commands above. But when this is not the case:

NB: the search command returns a “summary” output. If one is interested in the node name alone, some output trimming must be performed:

Running commands on multiple nodes

Cheat

Chef Knife Commands Cheat Sheet

The basic way to do it is to capture the search result and run ssh on every node:

One may improve it in a shell script in order to run the ssh commands in parallel and wait for their result; either way, it’s overengineering. The simple way to achieve such thing is:

The search query can get even more complicated, allowing for complex queries to target individual nodes by their configuration:

Server Chef Cheat Sheet

… and from here, the sky is the limit. Thank you for your read!

Related Posts

Chef Knife Cheat Sheet

Lately I’ve been obsessively replaying this game. And I’m still stuck at level 15-2, despite hearing “Congratulations, you are Top Chef” from Padma for every single other quickfire and elimination challenge. I take advantage of the power-ups but the classic combo one leaves me feeling too flustered. I’ve googled for tips, tricks, and cheats, hoping that someone has made a list of all the classic combos. No one is that obsessed with beating this game or wants to make a monumental list. So I did. Lists are fun! And hey, this is actually knowledge that would come in handy in the kitchen.