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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6b213b0d83a08807c027bb88948a74b5784c55d
4
- data.tar.gz: a601ee1208dbc0543692b6de3a9a54d0dfb5ceef
3
+ metadata.gz: c4120b1d9fe3de663fb538b87079b7743a2c6bcb
4
+ data.tar.gz: 7313f3af674dca5a3e110b8e974c6aa17e88ce4b
5
5
  SHA512:
6
- metadata.gz: 61468a9fb92634ba91f511774f8ea9e8d11006b3d6c909b60c1a1a255c0942638280ac2dff99c24f1d0031faf4c378b2a754be9536962827fdc038d08ffa3556
7
- data.tar.gz: 25196c2b900893d0ffa4442d1c4654f497a6d0405f8842ef102ab45aeaf0cf1cb63ed256fe6c2dc8c7c9bb7014cf6134e0ddd40a7946027d8dcab456cf4b9d2d
6
+ metadata.gz: 106d96940cc0264c9c09f4f48bc10035705f9cdc0cf53d7409073702b308d6550ab1f05572498530ad9c0edade11c495744e64d5264d4280cfa11f499db17905
7
+ data.tar.gz: a442bcea0165c975f2a0dd8771106f1c3af07931f8cdd4b21fb7a8e8ce1d0289c7734f4b039e04ed7e11d732fe1476e852e81fbaa1cb376dd79f436a6a2f2ca8
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Atlas
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.2.2".freeze
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  atlas_recipe :ssl do
2
- after :provision, "generate_dh"
3
- after :provision, "configure_lets_encrypt"
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/#{capistrano_app_name}.crt ]")
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 #{current_path}/public "\
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/#{production_hostname}/fullchain.pem /etc/ssl/#{capistrano_app_name}.crt"
20
- execute :sudo, "ln -s /etc/letsencrypt/live/#{production_hostname}/privkey.pem /etc/ssl/#{capistrano_app_name}.key"
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.1
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-02 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano