Comments (5)
Hi Nicolas,
I have not tried changing apt_repo or package_version so I'm not sure if
that path works. Have you tried omitting those? I have a Vagrant machine
running that way so I know it works (or worked).
Right now I'm not with my main machine so I can't check. Will do some time
tomorrow.
On Thu, Oct 3, 2013 at 7:58 PM, Nicolas Morel [email protected]:
Hi,
I'm trying to get a precise64 VM running with this repository set as the
cookbooks path.
I have set up my recipes like that :chef.add_recipe "apt" chef.add_recipe "mongodb::10gen_repo" chef.add_recipe "mongodb"
And the settings are :
chef.json = { :mongodb => { :apt_repo => "ubuntu-upstart", :package_version => "2.4.6" } }
It goes well until the 10gen_repo recipe, which fails with this :
The repository file to create is nil, cannot continue.The compiled version seems fine :
Compiled Resource:
Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mongodb/recipes/10gen_repo.rb:28:in `from_file'
apt_repository("10gen") do
uri "http://downloads-distro.mongodb.org/repo/ubuntu-upstart"
retry_delay 2
keyserver "hkp://keyserver.ubuntu.com:80"
retries 0
recipe_name "10gen_repo"
components ["10gen"]
action [:add]
cookbook_name :mongodb
key "7F0CEB10"
distribution "dist"
endI don't know what I'm missing here.
—
Reply to this email directly or view it on GitHubhttps://github.com/phunehehe/chef-cookbooks/issues/53
.
from chef-cookbooks.
It does the same thing if I remove the configuration of apt_repo and package_version.
I use a vagrant 1.3.3 with their default precise64 base box which contains chef 10.14.2 on a ruby vm 1.8.
from chef-cookbooks.
So Chef 10.x was the problem :)
I tried with the precise64 box and got the same error. Updating Chef to latest version fixes the thing. I think you will want to update Chef in the base box.
I fixed a typo in the service name.
from chef-cookbooks.
For the record I ended up using schisamo/vagrant-omnibus to upgrade chef and it was a breeze :)
from chef-cookbooks.
I have been on the fence about omnibus, as I think the right solution to the problem is to update and distribute the updated base box. Anyway it's nice to know that solves your problem.
from chef-cookbooks.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-cookbooks.