Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File templates/default/zshrc.erb does not exist #13

Open
terrysahaidak opened this issue Jul 8, 2015 · 0 comments
Open

File templates/default/zshrc.erb does not exist #13

terrysahaidak opened this issue Jul 8, 2015 · 0 comments

Comments

@terrysahaidak
Copy link

Hi. I've tried to install oh-my-zsh with vagrant and librarian-chef and I've got this error:

==> default: ================================================================================                                                           
==> default: Error executing action `create_if_missing` on resource 'template[/home/vagrant/.zshrc]'                                                    
==> default: ================================================================================                                                           
==> default:                                                                                                                                            
==> default: RuntimeError                                                                                                                               
==> default: ------------                                                                                                                               
==> default: File templates/default/zshrc.erb does not exist for cookbook oh_my_zsh                                                                     
==> default:                                                                                                                                            
==> default: Resource Declaration:                                                                                                                      
==> default: ---------------------                                                                                                                      
==> default: # In /tmp/vagrant-chef/8e7a3f026bf4c9a8611ef5c08592848f/cookbooks/oh-my-zsh/recipes/default.rb                                             
==> default:                                                                                                                                            
==> default:  26:   template "#{home_directory}/.zshrc" do                                                                                              
==> default:  27:     source "zshrc.erb"                                                                                                                
==> default:  28:     owner user_hash[:login]                                                                                                           
==> default:  29:     mode "644"                                                                                                                        
==> default:                                                                                                                                            
==> default:  30:     action :create_if_missing                                                                                                         
==> default:  31:     variables({                                                                                                                       
==> default:                                                                                                                                            
==> default:  32:       :user => user_hash[:login],                                                                                                     
==> default:  33:       :theme => user_hash[:theme] || 'robbyrussell',                                                                                  
==> default:  34:       :case_sensitive => user_hash[:case_sensitive] || false,                                                                         
==> default:  35:       :plugins => user_hash[:plugins] || %w(git)                                                                                      
==> default:  36:     })                                                                                                                                
==> default:  37:   end                                                                                                                                 
==> default:  38:                                                                                                                                       
==> default:                                                                                                                                            
==> default:                                                                                                                                            
==> default: Compiled Resource:                                                                                                                         
==> default: ------------------                                                                                                                         
==> default: # Declared in /tmp/vagrant-chef/8e7a3f026bf4c9a8611ef5c08592848f/cookbooks/oh-my-zsh/recipes/default.rb:26:in `block in from_file'         
==> default:                                                                                                                                            
==> default: template("/home/vagrant/.zshrc") do                                                                                                        
==> default:   action :create_if_missing                                                                                                                
==> default:                                                                                                                                            
==> default:   retries 0                                                                                                                                
==> default:   retry_delay 2                                                                                                                            
==> default:   default_guard_interpreter :default                                                                                                       
==> default:   path "/home/vagrant/.zshrc"                                                                                                              
==> default:   backup 5                                                                                                                                 
==> default:   atomic_update true                                                                                                                       
==> default:                                                                                                                                            
==> default:   source "zshrc.erb"                                                                                                                       
==> default:   variables {:user=>"vagrant", :theme=>"agnoster", :case_sensitive=>false, :plugins=>["gem", "git", "ruby"]}                               
==> default:   declared_type :template                                                                                                                  
==> default:   cookbook_name :oh_my_zsh                                                                                                                 
==> default:   recipe_name "default"                                                                                                                    
==> default:   owner "vagrant"                                                                                                                          
==> default:   mode "644"                                                                                                                               
==> default: end                                                                                                                                        
==> default:                                                                                                                                            
==> default:                                                                                                                                            
==> default:                                                                                                                                            
==> default: [2015-07-08T22:50:53+00:00] INFO: Running queued delayed notifications before re-raising exception                                         
==> default: [2015-07-08T22:50:53+00:00] ERROR: Running exception handlers                                                                              
==> default: [2015-07-08T22:50:53+00:00] ERROR: Exception handlers complete                                                                             
==> default: [2015-07-08T22:50:53+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out                                                
==> default: [2015-07-08T22:50:53+00:00] ERROR: template[/home/vagrant/.zshrc] (oh_my_zsh::default line 26) had an error: RuntimeError: File template   
s/default/zshrc.erb does not exist for cookbook oh_my_zsh                                                                                               
==> default: [2015-07-08T22:50:53+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)              

You can check my Vagrantfile and Cheffile in my repo.

I'm using this stuff:
Vagrant 1.7.2
vagrant-librarian-chef-nochef (0.2.0)
vagrant-share (1.1.3, system)
vagrant-vbguest (0.10.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant