系统相关
首页 > 系统相关> > linux – 无法在厨师中安装cookbook

linux – 无法在厨师中安装cookbook

作者:互联网

我刚开始我的厨师之旅,我有几个ubuntu ec2实例正在运行我已经安装了chef-client并且还配置了节点.我正在尝试运行一个入门烹饪书,我正在关注这个wiki

knife cookbook site install getting-started

但是,当我运行此命令时,我在我的笔记本电脑上运行ubuntu 12.10时出现此错误

Installing getting-started to /var/chef/cookbooks
ERROR: The default branch 'master' does not exist
If this is a new git repo, make sure you have at least one commit before installing cookbooks

我只是一个初学者,我无法弄清楚如何在我的所有实例中部署一个简单的食谱.

请帮助我

解决方法:

你必须

> git add --all
> git commit -a -m "updates"
> git stash save

你必须查看
https://docs.chef.io/errors.html

标签:ubuntu-12-10,linux,ubuntu,chef
来源: https://codeday.me/bug/20190901/1781270.html