A fresh install yield the error below. This is because you don't yet have an SSH key on Github. This should probably just be added to the instructions.
Recipe: sprout-git::git_projects
* execute[clone devops/sprout-wrap] action run[2014-08-10T10:29:16-04:00] INFO: Processing execute[clone devops/sprout-wrap] action run (sprout-git::git_projects line 26)
================================================================================
Error executing action `run` on resource 'execute[clone devops/sprout-wrap]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '128'
---- Begin output of git clone git@github.com:influitive/sprout-wrap.git devops/sprout-wrap ----
STDOUT:
STDERR: Cloning into 'devops/sprout-wrap'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
---- End output of git clone git@github.com:influitive/sprout-wrap.git devops/sprout-wrap ----
Ran git clone git@github.com:influitive/sprout-wrap.git devops/sprout-wrap returned 128
Resource Declaration:
---------------------
# In /Users/dev/sprout-wrap/cookbooks/sprout-git/recipes/git_projects.rb
26: execute "clone #{repo_name}" do
27: command "git clone #{repo_address} #{repo_name}"
28: user node['current_user']
29: cwd "#{node['sprout']['home']}/#{repo_dir}/"
30: not_if { ::File.exists?("#{node['sprout']['home']}/#{repo_dir}/#{repo_name}") }
31: end
32:
Compiled Resource:
------------------
# Declared in /Users/dev/sprout-wrap/cookbooks/sprout-git/recipes/git_projects.rb:26:in `block in from_file'
execute("clone devops/sprout-wrap") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "git clone git@github.com:influitive/sprout-wrap.git devops/sprout-wrap"
backup 5
cwd "/Users/dev/Code/infl/"
returns 0
user "dev"
cookbook_name :"sprout-git"
recipe_name "git_projects"
not_if { #code block }
end
[2014-08-10T10:29:16-04:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2014-08-10T10:29:16-04:00] ERROR: Running exception handlers
Running handlers complete
[2014-08-10T10:29:16-04:00] ERROR: Exception handlers complete
[2014-08-10T10:29:16-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 70 resources updated in 38.175641 seconds
[2014-08-10T10:29:16-04:00] ERROR: execute[clone devops/sprout-wrap] (sprout-git::git_projects line 26) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '128'
---- Begin output of git clone git@github.com:influitive/sprout-wrap.git devops/sprout-wrap ----
STDOUT:
STDERR: Cloning into 'devops/sprout-wrap'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
---- End output of git clone git@github.com:influitive/sprout-wrap.git devops/sprout-wrap ----
Ran git clone git@github.com:influitive/sprout-wrap.git devops/sprout-wrap returned 128
In addition to this, you actually need to USE the SSH key after adding it before running the recipes so that you can accept the SSH "do you want to add to hosts" prompt
A fresh install yield the error below. This is because you don't yet have an SSH key on Github. This should probably just be added to the instructions.