Advertisement
michaelpastes

Untitled

Jul 22nd, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. package "git-core"
  2. package "zsh"
  3.  
  4. include_recipe "nginx::source"
  5.  
  6. user node[:user][:name] do
  7. password node[:user][:password]
  8. home "/home/#{node[:user][:name]}"
  9. supports manage_home: true
  10. shell "/bin/zsh"
  11. end
  12.  
  13. template "/home/#{node[:user][:name]}/.zshrc" do
  14. source "zshrc.erb"
  15. owner node[:user][:name]
  16. end
  17.  
  18. directory "/home/#{node[:user][:name]}/example" do
  19. owner node[:user][:name]
  20. end
  21.  
  22. file "/home/#{node[:user][:name]}/example/index.html" do
  23. owner node[:user][:name]
  24. content "<h1>Hello World!</h1>"
  25. end
  26.  
  27. file "#{node[:nginx][:dir]}/sites-available/example" do
  28. content "server { root /home/#{node[:user][:name]}/example; }"
  29. end
  30.  
  31.  
  32. nginx_site "example" do
  33. action :enable
  34. end
  35.  
  36. node.override['nginx']['default_site_enabled'] = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement