我刚刚开始了我的厨师之旅,我已经运行了几个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
我只是一个初学者,我不知道如何将一本简单的食谱部署到我的所有实例中。
请帮帮我
发布于 2013-03-04 23:12:07
你必须
> git add --all
> git commit -a -m "updates"
> git stash save
发布于 2015-05-20 08:28:22
我必须提交git /var/chef/cookbook目录,首先添加一个readme.txt文件,以便在git代码库中确实有一些东西。
之后,运行weblogic的安装
sudo su -
cd /var/chef/cookbook
git init
echo "New repo!" > readme.txt
git add readme.txt
git commit -a -m "initializing repo for chef"
cd /home/your-username/chef-repo
knife cookbook site install weblogic
https://stackoverflow.com/questions/15202572
复制相似问题