Modify `Nginx` cookbook.

This commit is contained in:
Kazuhiro MUSASHI 2020-10-10 22:08:21 +09:00
parent 94420844b0
commit 601d814d5d
3 changed files with 11 additions and 9 deletions

View File

@ -3,6 +3,6 @@
# ------------------------------------------- # -------------------------------------------
node.reverse_merge!({ node.reverse_merge!({
'nginx' => { 'nginx' => {
'version' => '1.17.5' 'version' => '1.19.3'
} }
}) })

View File

@ -4,12 +4,12 @@ include_recipe './attributes.rb'
# Kernel Parameters: # Kernel Parameters:
include_recipe './kernel.rb' include_recipe './kernel.rb'
# Install Let's Encrypt:
include_recipe './lego.rb'
# Prerequisites for Building nginx: # Prerequisites for Building nginx:
include_recipe './webadm.rb' include_recipe './webadm.rb'
# Install Let's Encrypt:
include_recipe './lego.rb'
# Build nginx: # Build nginx:
include_recipe './build.rb' include_recipe './build.rb'

View File

@ -13,11 +13,13 @@ remote_file '/etc/sudoers.d/webadm' do
mode '440' mode '440'
end end
# Create `.ssh` directory: # Create directories:
directory '/home/webadm/.ssh' do %w(/home/webadm/.ssh /home/webadm/repo).each do |d|
directory d do
owner 'webadm' owner 'webadm'
group 'webadm' group 'webadm'
mode '700' mode '700'
end
end end
# Deploy `~/.ssh/.ssh/authorized_keys`: # Deploy `~/.ssh/.ssh/authorized_keys`: