kontena-plugin-digitalocean 0.2.2 → 0.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8777144dfa82c16de5949138b04c759c305e944
|
4
|
+
data.tar.gz: 6ee375efb16758e061d29a80978e617dc3380b95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8019545dfcdc7f33636431ae41806d10193db83a5b57c1f2ff3fa02fcd764e0b0b210d82804d63e89eff2a31b86693ca29c6b8ea8eda464fe988dc2bb5e66b7e
|
7
|
+
data.tar.gz: 31d02f091a2ab978d3cb82e51402a6aee4d66c52a0f29cd9e927b8dedef96355f824d4a058f89ca3dbd923763c7651d0ba64155bf764a91bd7b84f7c813db9dc
|
@@ -58,7 +58,10 @@ module Kontena
|
|
58
58
|
|
59
59
|
master_url = "https://#{droplet.public_ip}"
|
60
60
|
Excon.defaults[:ssl_verify_peer] = false
|
61
|
-
@http_client = Excon.new("#{master_url}",
|
61
|
+
@http_client = Excon.new("#{master_url}", {
|
62
|
+
:connect_timeout => 10,
|
63
|
+
:ssl_verify_peer => false
|
64
|
+
})
|
62
65
|
|
63
66
|
spinner "Waiting for #{droplet.name.colorize(:cyan)} to start" do
|
64
67
|
sleep 0.5 until master_running?
|
@@ -68,11 +71,16 @@ module Kontena
|
|
68
71
|
puts "Kontena Master is now running at #{master_url}".colorize(:green)
|
69
72
|
puts
|
70
73
|
|
71
|
-
{
|
74
|
+
data = {
|
72
75
|
name: name.sub('kontena-master-', ''),
|
73
76
|
public_ip: droplet.public_ip,
|
74
77
|
code: opts[:initial_admin_code]
|
75
78
|
}
|
79
|
+
if respond_to?(:certificate_public_key) && !opts[:ssl_cert]
|
80
|
+
data[:ssl_certificate] = certificate_public_key(ssl_cert)
|
81
|
+
end
|
82
|
+
|
83
|
+
data
|
76
84
|
end
|
77
85
|
|
78
86
|
def user_data(vars)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kontena-plugin-digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kontena, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kontena-cli
|