Merge branch 'support-blog-staging' of kazu634/itamae into master
This commit is contained in:
commit
b71896e274
|
@ -1,8 +1,10 @@
|
||||||
# Create the nginx directory:
|
# Create the nginx directory:
|
||||||
directory '/var/www/blog' do
|
%w( blog test ).each do |d|
|
||||||
|
directory "/var/www/#{d}" do
|
||||||
owner 'www-data'
|
owner 'www-data'
|
||||||
group 'webadm'
|
group 'webadm'
|
||||||
mode '770'
|
mode '770'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add the fstab entry:
|
# Add the fstab entry:
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
kazu634:$apr1$5iMN.i2P$58gdzg.dm7Tev8gCKXlpa/
|
|
@ -22,12 +22,14 @@ link '/etc/nginx/stream-enabled' do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deploy the nginx configuration files:
|
# Deploy the nginx configuration files:
|
||||||
remote_file '/etc/nginx/nginx.conf' do
|
%w(nginx.conf basic-auth).each do |f|
|
||||||
|
remote_file "/etc/nginx/#{f}" do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[nginx]'
|
notifies :reload, 'service[nginx]'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Log rotation setting:
|
# Log rotation setting:
|
||||||
|
|
Loading…
Reference in New Issue