Modify `Nginx` cookbook.
This commit is contained in:
parent
94420844b0
commit
601d814d5d
|
@ -3,6 +3,6 @@
|
||||||
# -------------------------------------------
|
# -------------------------------------------
|
||||||
node.reverse_merge!({
|
node.reverse_merge!({
|
||||||
'nginx' => {
|
'nginx' => {
|
||||||
'version' => '1.17.5'
|
'version' => '1.19.3'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,14 @@ 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`:
|
||||||
encrypted_remote_file '/home/webadm/.ssh/authorized_keys' do
|
encrypted_remote_file '/home/webadm/.ssh/authorized_keys' do
|
||||||
|
|
Loading…
Reference in New Issue