My question is about Chef and Chocolatey…
I can see the cookbook here: https://github.com/chocolatey/chocolatey-cookbook
And I can see the resource here: https://docs.chef.io/resource_chocolatey_package.html
I just don’t understand the relation between the cookbook and the resource.. Are they both needed if I wanted to install and use Chocolatey on my nodes? (I have the latest versions of everything, I have a new environment)
Can someone tell me what’s the most efficient way to:
- Install Chocolatey
- Push packages using choco
I tried installed Notepad++ with the chocolatey_package resource, but I get this error: No candidate version available for notepadplusplus (I get the error even after manually installing Choco on my node)
Used syntax in the recipe:
chocolatey_package [ ‘notepadplusplus’ ] do
action :install
end