kontena-plugin-azure 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: b60725200cd3a39f0c3bf361672ecd26ceb22bc1
4
- data.tar.gz: 5a4fd731e5da7643258cfa44a63515880db28b9a
3
+ metadata.gz: 824ae697831ee1e3580f72fd4a85240dcc3c504f
4
+ data.tar.gz: 66b41a06d66408f859285ce90bd66dda7046f2e5
5
5
  SHA512:
6
- metadata.gz: 9088fb49dbc7374bfb9661d6e00f965e7e4210aa514c9e4dc9538ed663fb2ab7ba6697ae90b323f76e4e75f8f7de60ee7e26cfbc895437154892e7344eb2518f
7
- data.tar.gz: 823079d1ae27bc5c707b5e865bf4f545f7c0731cb5709dfc143d073b324071371e84ef98ee5b6fc05097f503af7653b9e2db4483ac85d6592dd2c8dc7954a694
6
+ metadata.gz: 4ae48eec58b2ebfde7a40bae6e11f5aa9356b38236210c9f95a0283086c3915426a1298c33e221ead5cc6d5117a4c5979f3598e1e67d67c879fe385a04472487
7
+ data.tar.gz: 7c39f35ef94fea56165da4ac255d522faa3e5d5aa473ae41a312bf28bd75415b89eb7e44717d56e61dc24489140fddb2749d7e6c8142c5b9e8d261988221373d
@@ -33,6 +33,7 @@ module Kontena
33
33
  cloud_service_name = generate_cloud_service_name
34
34
  vm_name = cloud_service_name
35
35
  master_url = ''
36
+ public_ip = nil
36
37
  spinner "Creating an Azure Virtual Machine #{vm_name.colorize(:cyan)}" do
37
38
  if opts[:virtual_network].nil?
38
39
  location = opts[:location].downcase.gsub(' ', '-')
@@ -69,6 +70,7 @@ module Kontena
69
70
 
70
71
 
71
72
  virtual_machine = client.vm_management.create_virtual_machine(params,options)
73
+ public_ip = virtual_machine.ipaddress
72
74
 
73
75
  if opts[:ssl_cert]
74
76
  master_url = "https://#{virtual_machine.ipaddress}"
@@ -93,7 +95,7 @@ module Kontena
93
95
 
94
96
  {
95
97
  name: opts[:name] || cloud_service_name.sub('kontena-master-', ''),
96
- public_ip: virtual_machine.ipaddress,
98
+ public_ip: public_ip,
97
99
  provider: 'azure',
98
100
  version: master_version,
99
101
  code: opts[:initial_admin_code]
@@ -1,7 +1,7 @@
1
1
  module Kontena
2
2
  module Plugin
3
3
  module Azure
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
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-azure
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
  - 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-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kontena-cli