fnichol / chef-homesick Goto Github PK
View Code? Open in Web Editor NEWChef library cookbook to manage Homesick castle repositories.
Home Page: http://fnichol.github.io/chef-homesick
Chef library cookbook to manage Homesick castle repositories.
Home Page: http://fnichol.github.io/chef-homesick
Hi @fnichol,
I've been trying to build a Vagrant box with chef-homesick and I'm getting a problem during bootstrap... It is clear to me that it is doing a successful "clone", but also is doing an "update" as well and fails to do the "pull"... I'm guessing the sequence is incorrect...
My environment is:
mdesales@Marcello-Work ~/dev/workboxes/cfp-workbox (master) $ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.5.0]
homesick-0.9.7
*** Chef 10.30.2 ***
Vagrant 1.4.1
Ubuntu 13.04
Here's the log of the error
uccessfully installed homesick-0.9.7
1 gem installed
Installing ri documentation for homesick-0.9.7...
rdoc --ri --op /var/lib/gems/1.9.1/doc/homesick-0.9.7/ri lib ChangeLog.markdown LICENSE README.markdown --title homesick-0.9.7 Documentation --quiet
Installing RDoc documentation for homesick-0.9.7...
rdoc --op /var/lib/gems/1.9.1/doc/homesick-0.9.7/rdoc lib ChangeLog.markdown LICENSE README.markdown --title homesick-0.9.7 Documentation --quiet
Reading package lists...
Building dependency tree...
Reading state information...
vim is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
stdin: is not a tty
[2013-12-25T22:39:52+00:00] INFO: *** Chef 10.30.2 ***
[2013-12-25T22:39:52+00:00] INFO: Setting the run_list to ["recipe[apache2]", "recipe[homesick]", "recipe[zsh]", "recipe[oh-my-zsh]", "recipe[users::ruby_shadow]", "recipe[users::sysadmins]", "recipe[users::sysadmin_sudo]", "recipe[homesick_agent::data_bag]", "recipe[root_ssh_agent::ppid]", "recipe[ssh_known_hosts]"] from JSON
2013-12-25T22:39:55+00:00] INFO: execute[ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick clone git://github.com/marcellodesales/dotpickles.git --force'] ran successfully
run
on resource 'execute[ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force']'Expected process to exit with [0], but received '1'
---- Begin output of ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ----
STDOUT: error Could not pull dotfiles, expected /home/mdesales/.homesick/repos/dotfiles/home exist and contain dotfiles
STDERR: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
---- End output of ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ----
Ran ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' returned 1
39: execute remote_command
40: end
execute("ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force'") do
action "run"
retries 0
retry_delay 2
command "ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force'"
backup 5
returns 0
cookbook_name :homesick
end
[2013-12-25T22:39:55+00:00] ERROR: Running exception handlers
[2013-12-25T22:39:55+00:00] ERROR: Exception handlers complete
[2013-12-25T22:39:55+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-12-25T22:39:55+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force'](/tmp/vagrant-chef-1/chef-solo-1/cookbooks/homesick_agent/libraries/castle_agent.rb line 39) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ----
STDOUT: error Could not pull dotfiles, expected /home/mdesales/.homesick/repos/dotfiles/home exist and contain dotfiles
STDERR: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
---- End output of ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ----
Ran ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
It would be cool if I could choose the branch to use from the git repo, via an additional attribute called branch maybe.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.