Skip to content

osuosl-cookbooks/code_generator

Repository files navigation

Code Generator Cookbook

This cookbook is used to generate new cookbooks, recipes, attributes, lwrps, policy files, and basically any resource chef provides. First, ensure you have this set in your ~/.chef/knife.rb:

chefcli[:generator_cookbook] = '/opt/code_generator/code_generator'

The basic invocation from the chef-repo is:

chef generate GENERATOR

Creating a Cookbook

Using our organization defaults, the command to create a new cookbook from the osuosl-cookbooks directory, is:

chef generate cookbook COOKBOOK