Skip to content

Instantly share code, notes, and snippets.

@pburkholder
Created December 18, 2014 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pburkholder/59b16a84b4ae6698195c to your computer and use it in GitHub Desktop.
Save pburkholder/59b16a84b4ae6698195c to your computer and use it in GitHub Desktop.
Generic cookbook/.chef/client.rb
current_dir = File.dirname(__FILE__)
# might be interesting as Dir.pwd
my_cookbook = File.expand_path("..", current_dir)
log_level :info
log_location STDOUT
# Need this to create myself as local non-privileged chef client node:
node_name 'workstation_macpro'
# use 'berks vendor' and this cookbook path:
cookbook_path [
my_cookbook,
File.join(my_cookbook, 'berks-cookbooks')
]
# Set all nodes/ clients/ keys/ as local to my cookbook:
chef_repo_path my_cookbook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment