2013-03-04 150 views
2

我剛剛開始了我的廚師之旅,我有幾個ubuntu ec2實例正在運行我已經安裝了廚師客戶端並且還配置了節點。我想運行一個入門的食譜,我以下這個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 

我只是一個初學者,我無法弄清楚如何將簡單的食譜部署到我的所有實例中。

請幫我出

回答

2

您必須

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

您必須查看 https://docs.chef.io/errors.html

+0

感謝很多人,它實際上幫助我! – 2013-03-04 15:17:45

1

我必須承諾與git在/ var /廚師/菜譜目錄中,先加入一個自述。 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