Modify `Nginx` cookbook.
This commit is contained in:
parent
94420844b0
commit
601d814d5d
|
@ -3,6 +3,6 @@
|
|||
# -------------------------------------------
|
||||
node.reverse_merge!({
|
||||
'nginx' => {
|
||||
'version' => '1.17.5'
|
||||
'version' => '1.19.3'
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -13,11 +13,13 @@ remote_file '/etc/sudoers.d/webadm' do
|
|||
mode '440'
|
||||
end
|
||||
|
||||
# Create `.ssh` directory:
|
||||
directory '/home/webadm/.ssh' do
|
||||
owner 'webadm'
|
||||
group 'webadm'
|
||||
mode '700'
|
||||
# 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`:
|
||||
|
|
Loading…
Reference in New Issue