kontena-plugin-packet 0.2.3 → 0.2.4

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: 83084b1c72dd7db9b2308795241e07095102d90f
4
- data.tar.gz: 4b0198ef2391c80853626bf870087db549df9eea
3
+ metadata.gz: 7e342e46e5edd414f6c89dd7f3520c601cd214df
4
+ data.tar.gz: 86220e173636b804c81a7f985b06d842549a76dd
5
5
  SHA512:
6
- metadata.gz: 73fd04e9620d502380c8230a446332162f1ec8b2e7580affa910fe141cac64cdef863400a8f641d52fa15f85efb8f7f659b61a88b8130a3cb835a36c615fb78f
7
- data.tar.gz: b4168275c5cd15fae4cedf134ef6a71e2f9600332b048103559f9fcf2286a50510f412a3e4e3ab9d93062decaccea85ab45ef5c51c89f00d2307d2400a609ba0
6
+ metadata.gz: 1a588c45a90d214d24e1e39a8bb0000740cd4ce7b1aa196aa641b96158e6b5cce55efd61d595f56592476e1c51a79b39e9a1b00490097df894ec28d914d8d3d4
7
+ data.tar.gz: 3c5c15f1ff51d2ce40c02dd81143cf2c12cc5bb95d771e7738ab2e2a98d859f84e40ef2be0ae07b4aefaa2a980a6381499d820117ec04149c555b10ff60fa773
@@ -33,6 +33,10 @@ module Kontena
33
33
  end
34
34
  end
35
35
 
36
+ if respond_to?(:certificate_public_key) && !opts[:ssl_cert]
37
+ ssl_cert_public = certificate_public_key(ssl_cert)
38
+ end
39
+
36
40
  name = generate_name
37
41
 
38
42
  userdata_vars = opts.merge(
@@ -84,6 +88,7 @@ module Kontena
84
88
  public_ip: public_ip['address'],
85
89
  code: opts[:initial_admin_code],
86
90
  provider: 'packet',
91
+ ssl_certificate: ssl_cert_public,
87
92
  version: master_version
88
93
  }
89
94
  end
@@ -10,7 +10,7 @@ module Kontena
10
10
  end
11
11
 
12
12
  def create_ssh_key(ssh_key)
13
- client.create_ssh_key(ssh_key_label(ssh_key))
13
+ client.create_ssh_key(label: ssh_key_label(ssh_key), key: ssh_key)
14
14
  end
15
15
 
16
16
  def ssh_key_exist?(ssh_key)
@@ -1,7 +1,7 @@
1
1
  module Kontena
2
2
  module Plugin
3
3
  module Packet
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
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-packet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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-25 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
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.4.8
125
+ rubygems_version: 2.4.5
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Kontena Packet plugin