capistrano-atlas 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/atlas/version.rb +1 -1
- data/lib/capistrano/tasks/ssl.rake +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4120b1d9fe3de663fb538b87079b7743a2c6bcb
|
4
|
+
data.tar.gz: 7313f3af674dca5a3e110b8e974c6aa17e88ce4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 106d96940cc0264c9c09f4f48bc10035705f9cdc0cf53d7409073702b308d6550ab1f05572498530ad9c0edade11c495744e64d5264d4280cfa11f499db17905
|
7
|
+
data.tar.gz: a442bcea0165c975f2a0dd8771106f1c3af07931f8cdd4b21fb7a8e8ce1d0289c7734f4b039e04ed7e11d732fe1476e852e81fbaa1cb376dd79f436a6a2f2ca8
|
@@ -1,6 +1,6 @@
|
|
1
1
|
atlas_recipe :ssl do
|
2
|
-
|
3
|
-
|
2
|
+
prior_to "atlas:nginx:configure", "atlas:ssl:generate_dh"
|
3
|
+
prior_to "atlas:nginx:configure", "atlas:ssl:configure_lets_encrypt"
|
4
4
|
end
|
5
5
|
|
6
6
|
namespace :atlas do
|
@@ -8,16 +8,16 @@ namespace :atlas do
|
|
8
8
|
desc "Setup Let's Encrypt and get a free certificate"
|
9
9
|
task :configure_lets_encrypt do
|
10
10
|
privileged_on roles(:web) do
|
11
|
-
unless test("sudo [ -f /etc/ssl/#{
|
11
|
+
unless test("sudo [ -f /etc/ssl/#{application_basename}.crt ]")
|
12
12
|
execute :sudo, "mkdir -p /opt/certbot"
|
13
13
|
execute :sudo, "wget https://dl.eff.org/certbot-auto -O /opt/certbot/certbot-auto && chmod a+x /opt/certbot/certbot-auto"
|
14
14
|
execute :sudo, "/opt/certbot/certbot-auto certonly --agree-tos "\
|
15
15
|
"--email #{fetch(:atlas_lets_encrypt_email)} "\
|
16
|
-
"--webroot -w
|
16
|
+
"--webroot -w /var/www/html "\
|
17
17
|
"-d #{fetch(:atlas_lets_encrypt_domain_name)}"
|
18
18
|
|
19
|
-
execute :sudo, "ln -s /etc/letsencrypt/live/#{
|
20
|
-
execute :sudo, "ln -s /etc/letsencrypt/live/#{
|
19
|
+
execute :sudo, "ln -s /etc/letsencrypt/live/#{fetch(:atlas_lets_encrypt_domain_name)}/fullchain.pem /etc/ssl/#{application_basename}.crt"
|
20
|
+
execute :sudo, "ln -s /etc/letsencrypt/live/#{fetch(:atlas_lets_encrypt_domain_name)}/privkey.pem /etc/ssl/#{application_basename}.key"
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -32,4 +32,4 @@ namespace :atlas do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
35
|
-
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-atlas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John McDowall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|