2013-05-23 2 views
2

를 통해 루비를 설치하고 내가 방랑과 librarian-를 사용하는 야심 찬 아이디어가 그래서 지금 시간이 걸릴 수 있습니다 내가 할 일은 내가에서 오전 bash는 스크립트와 비올라를 실행되도록 내 작업 환경을 만드는 요리사.방랑 사서 요리사 난 내 전체 작업 환경 몇 번을 다시 설치해야했다 지난 몇 주 동안 ruby_build 및 rbenv

을 그래서 난이 난에 가서 모든 것을 한 솔로 방랑이었다했고, 그것을 포장하고 처음 단지 잠시 동안 큰 .. 패키지가 600메가바이트 그래서 다음 아이디어는 요리사 것이 었습니다 모든 작업을 수행 할 수 있습니다. 하지만 난 내가 발견하기 전에 요리사로 일한 적이있다 librarian-chef 기본적으로 내가 librarian-chef init 그것을 당신이 나의이

site 'http://community.opscode.com/api/v1' 

cookbook 'apt' 
cookbook 'git' 
cookbook 'build-essential' 
cookbook 'ruby_build', 
    git: 'git://github.com/fnichol/chef-ruby_build' 
cookbook 'rbenv', 
    git: 'git://github.com/fnichol/chef-rbenv' 
cookbook 'sqlite', 
    git: 'git://github.com/opscode-cookbooks/sqlite.git' 
cookbook 'nodejs', 
    git: 'http://github.com/mdxp/nodejs-cookbook' 
cookbook 'mysql', 
    git: 'git://github.com/opscode-cookbooks/mysql.git' 
cookbook 'redis', 
    git: 'git://github.com/brianbianco/redisio.git' 
cookbook 'zlib', 
    git: 'git://github.com/opscode-cookbooks/zlib' 
cookbook 'wkhtmltopdf', 
    git: 'git://github.com/firstbanco/chef-wkhtmltopdf.git' 

과 같은 요리 책을 지정할 수 있습니다 당신은 방랑을 말해 당신이 vagrent up

를 호출 할 때 다음을 구축하는 요리사 cheffile한다 내가 얻을 수 있는지 궁금했다 vagrantfile 지금

config.vm.provision :chef_solo do |chef| 
    chef.cookbooks_path = ["cookbooks","site-cookbooks"] 
    chef.add_recipe "apt" 
    chef.add_recipe "build-essential" 
    chef.add_recipe "git" 
    chef.add_recipe "ruby_build" 
    chef.add_recipe "rbenv::install" 
    chef.add_recipe "sqlite" 
    chef.add_recipe "nodejs" 
    chef.add_recipe "mysql" 
    chef.add_recipe "redis" 
    chef.add_recipe "zlib" 
    chef.add_recipe "wkhtmltopdf" 
end 

에서

ruby_build 1.9.3-p290를 설치하는 난이 question이있는 것 같다 발견 에드는 대답을합니다하지만 난 다음

Running chef-solo... 
stdin: is not a tty 
[2013-05-23T14:31:18+00:00] INFO: *** Chef 10.14.2 *** 
[2013-05-23T14:31:18+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[git]", "recipe[ruby_build]", "recipe[rbenv::install]", "recipe[sqlite]", "recipe[nodejs]", "recipe[mysql]", "recipe[redis]", "recipe[zlib]", "recipe[wkhtmltopdf]"] from JSON 
[2013-05-23T14:31:18+00:00] INFO: Run List is [recipe[apt], recipe[build-essential], recipe[git], recipe[ruby_build], recipe[rbenv::install], recipe[sqlite], recipe[nodejs], recipe[mysql], recipe[redis], recipe[zlib], recipe[wkhtmltopdf]] 
[2013-05-23T14:31:18+00:00] INFO: Run List expands to [apt, build-essential, git, ruby_build, rbenv::install, sqlite, nodejs, mysql, redis, zlib, wkhtmltopdf] 
[2013-05-23T14:31:18+00:00] INFO: Starting Chef Run for precise64 
[2013-05-23T14:31:18+00:00] INFO: Running start handlers 
[2013-05-23T14:31:18+00:00] INFO: Start handlers complete. 

================================================================================ 
Recipe Compile Error 
================================================================================ 

Chef::Exceptions::RecipeNotFound 
-------------------------------- 
could not find recipe ruby_build for cookbook rbenv 

[2013-05-23T14:31:19+00:00] ERROR: Running exception handlers 
[2013-05-23T14:31:19+00:00] ERROR: Exception handlers complete 
[2013-05-23T14:31:19+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out 
[2013-05-23T14:31:19+00:00] FATAL: Chef::Exceptions::RecipeNotFound: could not find recipe ruby_build for cookbook rbenv 
Chef never successfully completed! Any errors should be visible in the 
output above. Please fix your recipes so that they properly complete. 

은 내가 어떻게 루비 루비 구축을 통해뿐만 아니라 설치 얻을 수 있습니다 무엇입니까 가능하거나이 불가능하다

사서는 로컬 요리 책을 설치하지만 것

답변

0

시도 실행 목록에 ruby_build를 추가 :

"run_list": [ "ruby_build", "recipe[main]" ]