
How to move/copy files locally with Chef - Stack Overflow
I haven't yet come across a Chef resource that will copy/move files locally. For example, I want to download jetty hightide and unzip it. Once done, copy all the files into a particular folder, lik...
How to recursively change the owner and group on a directory ...
We could write a chef resource which iterates through your directory hierarchy and creates a file or directory resource for every file that it finds and then set it up to manage the owner and …
How can you use a Chef recipe to set an environment variable?
How can you use a Chef recipe to set an environment variable? I need to set an environment variable using a Chef recipe. Can you provide an example of how to accomplish this?
Chef Recipe How To Check If File Exists - Stack Overflow
Jul 8, 2016 · The basic idea of Chef is that you state the desired state of the system, and then Chef compares that to the actual state, and makes any changes needed to bring the system …
chef infra - FATAL: NoMethodError: undefined method ...
May 4, 2015 · Chef-apply aimed to use the internal chef resources and not LWRP. The way to use multiples cookbooks is to create a cookbook and have a depend directive in its …
Chef-Client Test one recipe in local mode - Stack Overflow
Aug 29, 2017 · I want to test a new recipe as part of my cookbook, it is the first recipe I've created that is not the default recipe. Using chef-client I can do chef-client -z -o my_cookbook This will …
chef only_if AND not_if in same resource - Stack Overflow
I'm confused about the logic order of only_if and not_if in Chef's resource model. In the following example, assuming a file called /tmp/foo containing the word bar: execute "rm /tmp/foo" do ...