我有一套用于提供web和SQL服务器的食谱,它们目前正在我们的连续部署管道中使用。我希望开发人员能够使用相同的菜谱来设置他们的本地开发环境,而无需向厨师服务器注册每台开发机器。看来“零厨师”可以用来完成这个任务,但是我在开始的时候遇到了一些麻烦。
我有一个厨师-回购文件夹,里面有我的食谱,我正在跟踪。
PS C:\Temp\chef-repo> tree .
Folder PATH listing
Volume serial number is 3E77-463C
C:\TEMP\CHEF-REPO
└───cookbooks
└───test
└───recip
我对厨师和学习来说是新手,我在生成烹饪书的时候遇到了下面的错误,我遵循了下面的步骤,.Please,让我知道下一步的步骤。
root@ip-IPAddress:/home/ubuntu/chef-repo/cookbooks# chef generate cookbook webserver
Command 'chef' is available in '/usr/games/chef'
The command could not be located because '/usr/games' is not included in the PAT
我正试图在Windows8.1上为web开发设置Vagrant。我已经遇到了问题,所以我使用Vagrant1.7.4和Chef12.3.0。
我无法解决这个错误:
ERROR: You must specify at least one cookbook repo path
发自:
c:\web\project>vagrant provision
==> default: The cookbook path 'c:/web/project/cookbooks' doesn't exist. Ignoring...
==> default: The co
我正在执行gem install pg来安装pg,然后在Redhat AWS机器上执行chef脚本。我收到以下错误: gem install pg Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: /opt/chef/embedded/lib/ruby/gems/2.5.0/gems/pg-1.1.4/ext/opt/chef/emb
我在我的工作站/本地机器上运行了"chef verify“,得到了这个错误结果。
mike@mike-pc:/opt/chefdk$ chef verify
Running verification for component 'berkshelf'
Running verification for component 'test-kitchen'
Running verification for component 'tk-policyfile-provisioner'
Running verification for comp
这似乎是一件容易的事情,但我只是无法得到刀为我创造一个新的用户。我是管理仪表板的用户厨师-服务器。我使用初始命令knife configure --initial和根用户创建了一个管理用户。现在,我正试图为名为"myuser“的本地用户创建一个api用户。
所以,我这样做:
myuser@chefserver:~$ knife configure --initial
Overwrite /home/myuser/.chef/knife.rb? (Y/N)y
Please enter the chef server URL: [https://chefserver:443]
Pleas
我有一个困难的时间来获得一个简单的git回购部署工作,使用厨师。
这是我的食谱:
deploy "tomatina" do
repo "git://github.com/visionmedia/express.git"
deploy_to '/tmp/selvam'
action :deploy
end
当我在节点上运行主厨-客户端时,它会出现错误,文件没有找到异常。我不知道这是什么错误。我是厨师和红宝石的新手,不知道从哪里开始调查这个错误。这是我的日志:
Starting Chef Client, version 12.9.41
r