Closed jaypipes closed 11 years ago
Ah, I bet since it failed on upload during the initial server provision (#16) that it never got to the cookbooks (or environments or data bags). Give this a try:
$ bundle exec vagabond server upload_cookbooks
That will upload all the cookbooks based on the Vagabondfile configuration (using berkshelf in this case). And since it can take awhile to complete depending on the size and complexity of the berksfile and cookbooks loaded, you can add the --debug
switch to see how things are progressing.
Hmm, something's not quite working :)
jpipes@uberbox:~/repos/att-cloud/chef-repo$ bundle exec vagabond server upload_cookbooks --debug
Local chef server: Uploading cookbooks
Cookbooks being uploaded via berks
Vagabond exiting. Reason: undefined method `[]' for true:TrueClass
The cluster nodes and the local chef server do seem to be OK, though:
jpipes@uberbox:~/repos/att-cloud/chef-repo$ bundle exec vagabond status
Name State PID IP
compute_worker running 19244 10.0.3.169
controller running 19868 10.0.3.52
ops running 20495 10.0.3.9
server running 16441 10.0.3.47
:berkshelf => {}
Can you toss that into your vagabondfile in place of the :berkshelf => true
That did it. Makes sense after looking at the code in https://github.com/chrisroberts/vagabond/blob/master/lib/vagabond/server.rb#L167.
You want me to submit a patch that fixes up the docs in USAGE.md and/or changes the above code to be tolerant of TrueClass? Happy to do so.
Actually applying the fix right now. Thanks :)
When executing vagabond knife, I'm seeing some unusual results:
I was expecting to see the cookbooks in the Berksfile from the chef-repo. My Vagabondfile looks like this:
What am I missing? Is the local (er)chef server not what vagabond knife communicates with?
If I ssh into one of the nodes and run knife cookbook list, I get an error:
Perhaps because I have an empty run_list for the nodes?