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: 299c88a3a3bb78df2538e729bf24703f35819e0a
4
- data.tar.gz: ff82583200383771733346c0fddecc1b53e36a9d
3
+ metadata.gz: f8777144dfa82c16de5949138b04c759c305e944
4
+ data.tar.gz: 6ee375efb16758e061d29a80978e617dc3380b95
5
5
  SHA512:
6
- metadata.gz: 53f7a7068d1ca20abd3b283e83e7c7354cd3ea4607a29ae8b5aeaaa1445beaf2cd82cac6840a5e411c3961da6086a85c7aec785ee9de7e10b1dd23decf31cc92
7
- data.tar.gz: 7b38caf706298945358e64d2bfd9bdf2c95872a332f49306b00bebe4e02b5331cd52d376dfccf1dae392eb4f7a90afff1272b2a2c6c26b4dd90a97b84163e8be
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}", :connect_timeout => 10)
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)
@@ -1,7 +1,7 @@
1
1
  module Kontena
2
2
  module Plugin
3
3
  module DigitalOcean
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
6
6
  end
7
7
  end
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.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-22 00:00:00.000000000 Z
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kontena-cli