Question: I have a chef powershell_script which seems to be running whenever the not_if guard throws an exception, I would like to change it so that the chef run fails when the not_if throws an exception, would that be possible? ...

Question: I’m learning Chef via Udemy, and one of the topics is to test cookbook syntax with cookstyle. I wrote a very simple cookbook and tried to test it with cookstyle: The tutorial is using ChefDK, which I’ve found is ...

Question: I have the below hash in a chef recipe, that creates a directory/s I ONLY want chef to try create the directory based on this guard: only_if "getent passwd #{dir['owner']}" && "getent group #{dir['group']}" So that basically means that ...