Knife cookbook site download specific version






















This action will require a user account and a certificate for Chef Supermarket. By default, knife will use the user name and API key that is identified in the configuration file used during the upload; otherwise these values must be specified on the command line or in an alternate configuration file. If a cookbook already exists on the Chef Supermarket , then only an owner or maintainer of that cookbook can make updates. Use the show argument to view information about a cookbook on the Chef Supermarket.

The version of a cookbook to be shown. If a cookbook has more than one version and this option is not specified, a list of cookbook versions is returned. Use the unshare argument to stop the sharing of a cookbook at the Chef Supermarket. Only the maintainer of a cookbook may perform this action. To unshare cookbook version 0. Warning knife cookbook site has been deprecated in favor of the knife supermarket command. Warning Please consider managing community cookbooks using the version of Berkshelf that ships with Chef Workstation.

This option places a copyright notice that contains the name of the copyright holder in each of the pre-created files. This option places the appropriate license notice in the pre-created files: Apache v2.

Be aware of the licenses for files inside of a cookbook and be sure to follow any restrictions they describe. This option places an email address in each of the pre-created files. This can be a colon-separated path. If a cookbook has only one version, this option does not need to be specified. If a cookbook has more than one version and this option is not specified, knife prompts for a version. If a cookbook has more than one version and this option is not specified, a list of cookbook versions is returned.

PART The part of the cookbook to show: attributes , definitions , files , libraries , providers , recipes , resources , or templates. More than one part can be specified. Note Use a chefignore file to prevent the upload of specific files and file types, such as temporary files or files placed in folders by version control systems.

Note Empty directories are not uploaded to the Chef server. Default: Only the --force option can override this setting. Uploading redis The above values will be used to generate header in any of the. As we see, since this is the first version of this cookbook, it is showing the version number as 0.

When you have multiple cookbooks that has multiple versions, you can upload all of your cookbooks using option -a. In the following example, we have 4 cookbooks, and the latest version of all these cookbooks are getting uploaded. In the following example, after this command, nobody can upload the 2. You have to create a new version. For some reason, if you want to edit and upload a cookbook that is frozen, use the —force option. When you are uploading lot of cookbooks that are big, you can use the —concurrency option.

By default this is set to In the following example, we are setting the concurrency to 15 while uploading the cookbook. The 2nd column in the following output is the latest version of that cookbook.

To view how many versions are available for the cookbooks, use the -a option which will display ALL versions. You can also use —all option. Learn more. Upload specific Chef cookbook version with knife? Ask Question. Asked 5 years, 9 months ago. Active 2 years, 11 months ago. Viewed 3k times. Is it possible to upload a specific version? Improve this question. Stefhen Stefhen 2 2 silver badges 8 8 bronze badges.

You set the version in metadata.



0コメント

  • 1000 / 1000