简体   繁体   中英

Chef and chocolatey

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:

  1. Install Chocolatey
  2. 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

You can use either. We usually put things in a cookbook to start with, and then if there is a lot of user demand and the code is stabilized, we'll move it into Chef core.

The likely issue is that should be chocolatey_package 'notepadplusplus' do without the array.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM