Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package "git-core"
- package "zsh"
- include_recipe "nginx::source"
- user node[:user][:name] do
- password node[:user][:password]
- home "/home/#{node[:user][:name]}"
- supports manage_home: true
- shell "/bin/zsh"
- end
- template "/home/#{node[:user][:name]}/.zshrc" do
- source "zshrc.erb"
- owner node[:user][:name]
- end
- directory "/home/#{node[:user][:name]}/example" do
- owner node[:user][:name]
- end
- file "/home/#{node[:user][:name]}/example/index.html" do
- owner node[:user][:name]
- content "<h1>Hello World!</h1>"
- end
- file "#{node[:nginx][:dir]}/sites-available/example" do
- content "server { root /home/#{node[:user][:name]}/example; }"
- end
- nginx_site "example" do
- action :enable
- end
- nginx_site 'default' do
- action :disable
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement