Created
December 18, 2014 15:57
-
-
Save pburkholder/59b16a84b4ae6698195c to your computer and use it in GitHub Desktop.
Generic cookbook/.chef/client.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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