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!({
'nginx' => {
'version' => '1.17.5'
'version' => '1.19.3'
}
})

View File

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

View File

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