knife-azure 2.0.11 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/azure/azure_interface.rb +1 -1
- data/lib/azure/custom_errors.rb +1 -1
- data/lib/azure/helpers.rb +1 -1
- data/lib/azure/resource_management/ARM_deployment_template.rb +1 -1
- data/lib/azure/resource_management/ARM_interface.rb +12 -14
- data/lib/azure/resource_management/vnet_config.rb +2 -2
- data/lib/azure/resource_management/windows_credentials.rb +5 -6
- data/lib/azure/service_management/ASM_interface.rb +1 -1
- data/lib/azure/service_management/ag.rb +1 -1
- data/lib/azure/service_management/certificate.rb +4 -4
- data/lib/azure/service_management/connection.rb +1 -1
- data/lib/azure/service_management/deploy.rb +1 -1
- data/lib/azure/service_management/disk.rb +1 -1
- data/lib/azure/service_management/host.rb +1 -1
- data/lib/azure/service_management/image.rb +1 -1
- data/lib/azure/service_management/loadbalancer.rb +1 -1
- data/lib/azure/service_management/rest.rb +1 -1
- data/lib/azure/service_management/role.rb +1 -1
- data/lib/azure/service_management/storageaccount.rb +1 -1
- data/lib/azure/service_management/utility.rb +1 -1
- data/lib/azure/service_management/vnet.rb +1 -1
- data/lib/chef/knife/azure_ag_create.rb +5 -5
- data/lib/chef/knife/azure_ag_list.rb +2 -2
- data/lib/chef/knife/azure_image_list.rb +4 -4
- data/lib/chef/knife/azure_internal-lb_create.rb +6 -6
- data/lib/chef/knife/azure_internal-lb_list.rb +2 -2
- data/lib/chef/knife/azure_server_create.rb +71 -71
- data/lib/chef/knife/azure_server_delete.rb +8 -8
- data/lib/chef/knife/azure_server_list.rb +2 -2
- data/lib/chef/knife/azure_server_show.rb +2 -2
- data/lib/chef/knife/azure_vnet_create.rb +6 -6
- data/lib/chef/knife/azure_vnet_list.rb +2 -2
- data/lib/chef/knife/azurerm_server_create.rb +45 -45
- data/lib/chef/knife/azurerm_server_delete.rb +9 -9
- data/lib/chef/knife/azurerm_server_list.rb +4 -4
- data/lib/chef/knife/azurerm_server_show.rb +4 -4
- data/lib/chef/knife/bootstrap/bootstrapper.rb +29 -35
- data/lib/chef/knife/bootstrap/common_bootstrap_options.rb +3 -5
- data/lib/chef/knife/bootstrap_azure.rb +16 -16
- data/lib/chef/knife/bootstrap_azurerm.rb +7 -7
- data/lib/chef/knife/{azure_base.rb → helpers/azure_base.rb} +48 -59
- data/lib/chef/knife/{azurerm_base.rb → helpers/azurerm_base.rb} +40 -51
- data/lib/knife-azure/version.rb +2 -2
- metadata +15 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17210f56bc1b6b7efd7152512c8ee5c416d0eb6afed2139f757bbd96f20baaa8
|
4
|
+
data.tar.gz: 3cba997f30e540035c9b4495326c09e70d45a3c0d7c9f84d01377168bf73837f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 884f5d06b3ad5159a97a81434e508185c64c0850f135b2b71094f70076aeecc0b7670f58d83215531344b903820caefeacec85aee53f7d254cbbbe22eca21548
|
7
|
+
data.tar.gz: f57c4e8b5cad7a9437a4292c1c41b2ff668d9c42f32c322ef1f1ac7fe87d735b8fff7c8d2859500958f3e11616487e0606960f75d39c7948fbdc0fdb46723924
|
data/lib/azure/custom_errors.rb
CHANGED
data/lib/azure/helpers.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Nimisha Sharad (nimisha.sharad@clogeny.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -44,11 +44,11 @@ module Azure
|
|
44
44
|
attr_accessor :connection
|
45
45
|
|
46
46
|
def initialize(params = {})
|
47
|
-
if params[:azure_client_secret]
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
47
|
+
token_provider = if params[:azure_client_secret]
|
48
|
+
MsRestAzure::ApplicationTokenProvider.new(params[:azure_tenant_id], params[:azure_client_id], params[:azure_client_secret])
|
49
|
+
else
|
50
|
+
MsRest::StringTokenProvider.new(params[:token], params[:tokentype])
|
51
|
+
end
|
52
52
|
@credentials = MsRest::TokenCredentials.new(token_provider)
|
53
53
|
@azure_subscription_id = params[:azure_subscription_id]
|
54
54
|
super
|
@@ -215,7 +215,7 @@ module Azure
|
|
215
215
|
if e.body
|
216
216
|
err_json = JSON.parse(e.response.body)
|
217
217
|
if err_json["error"]["code"] == "ResourceNotFound"
|
218
|
-
|
218
|
+
false
|
219
219
|
else
|
220
220
|
raise e
|
221
221
|
end
|
@@ -229,7 +229,7 @@ module Azure
|
|
229
229
|
if e.body
|
230
230
|
err_json = JSON.parse(e.response.body)
|
231
231
|
if err_json["error"]["code"] == "ResourceNotFound"
|
232
|
-
|
232
|
+
false
|
233
233
|
else
|
234
234
|
raise e
|
235
235
|
end
|
@@ -323,7 +323,7 @@ module Azure
|
|
323
323
|
else
|
324
324
|
ui.log("Creating ResourceGroup....\n\n")
|
325
325
|
resource_group = create_resource_group(params)
|
326
|
-
Chef::Log.info("ResourceGroup creation
|
326
|
+
Chef::Log.info("ResourceGroup creation successful.")
|
327
327
|
Chef::Log.info("Resource Group name is: #{resource_group.name}")
|
328
328
|
Chef::Log.info("Resource Group ID is: #{resource_group.id}")
|
329
329
|
end
|
@@ -355,7 +355,7 @@ module Azure
|
|
355
355
|
|
356
356
|
ui.log("Creating Virtual Machine....")
|
357
357
|
deployment = create_virtual_machine_using_template(params)
|
358
|
-
ui.log("Virtual Machine creation
|
358
|
+
ui.log("Virtual Machine creation successful.") unless deployment.nil?
|
359
359
|
|
360
360
|
unless deployment.nil?
|
361
361
|
ui.log("Deployment name is: #{deployment.name}")
|
@@ -422,8 +422,7 @@ module Azure
|
|
422
422
|
deploy_params = Deployment.new
|
423
423
|
deploy_params.properties = deploy_prop
|
424
424
|
|
425
|
-
|
426
|
-
deployment
|
425
|
+
resource_management_client.deployments.create_or_update(params[:azure_resource_group_name], "#{params[:azure_vm_name]}_deploy", deploy_params)
|
427
426
|
end
|
428
427
|
|
429
428
|
def create_vm_extension(params)
|
@@ -467,8 +466,7 @@ module Azure
|
|
467
466
|
params[:chef_extension]
|
468
467
|
).last.name
|
469
468
|
ext_version_split_values = ext_version.split(".")
|
470
|
-
|
471
|
-
ext_version
|
469
|
+
ext_version_split_values[0] + "." + ext_version_split_values[1]
|
472
470
|
end
|
473
471
|
|
474
472
|
def delete_resource_group(resource_group_name)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Aliasgar Batterywala (aliasgar.batterywala@clogeny.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -41,7 +41,7 @@ module Azure::ARM
|
|
41
41
|
if error.body
|
42
42
|
err_json = JSON.parse(error.response.body)
|
43
43
|
if err_json["error"]["code"] == "ResourceNotFound"
|
44
|
-
|
44
|
+
false
|
45
45
|
else
|
46
46
|
raise error
|
47
47
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Nimisha Sharad (nimisha.sharad@clogeny.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -101,7 +101,7 @@ module Azure
|
|
101
101
|
credential[:tokentype] = tokentype[0].split(":")[1]
|
102
102
|
credential[:user] = user[0].split(":")[1]
|
103
103
|
credential[:token] = access_token[0].split(":")[1]
|
104
|
-
#
|
104
|
+
# TODO: refresh_token is not complete currently
|
105
105
|
# target_name method needs to be modified for that
|
106
106
|
credential[:refresh_token] = refresh_token[0].split(":")[1]
|
107
107
|
credential[:clientid] = clientid[0].split(":")[1]
|
@@ -123,8 +123,8 @@ module Azure
|
|
123
123
|
def target_name
|
124
124
|
# cmdkey command is used for accessing windows credential manager.
|
125
125
|
# Multiple credentials get created in windows credential manager for a single Azure account in xplat-cli
|
126
|
-
# One of them is for common
|
127
|
-
# Others end with --0-x,--1-x,--2-x etc, where x represents the total no. of
|
126
|
+
# One of them is for common tenant id, which can't be used
|
127
|
+
# Others end with --0-x,--1-x,--2-x etc, where x represents the total no. of credentials across which the token is divided
|
128
128
|
# The one ending with --0-x has the complete accessToken in the credentialBlob.
|
129
129
|
# Refresh Token is split across both credentials (ending with --0-x and --1-x).
|
130
130
|
# Xplat splits the credentials based on the number of bytes of the tokens.
|
@@ -150,8 +150,7 @@ module Azure
|
|
150
150
|
|
151
151
|
# If "azure login" is run for multiple users, there will be multiple credentials
|
152
152
|
# Picking up the latest logged in user's credentials
|
153
|
-
|
154
|
-
latest_target
|
153
|
+
latest_credential_target target_names
|
155
154
|
end
|
156
155
|
|
157
156
|
def latest_credential_target(targets)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Jeff Mendoza (jeffmendoza@live.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Mukta Aphale (mukta.aphale@clogeny.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -85,7 +85,7 @@ module Azure
|
|
85
85
|
ca.add_extension(ef.create_extension("keyUsage", "keyCertSign, cRLSign", true))
|
86
86
|
ca.add_extension(ef.create_extension("subjectKeyIdentifier", "hash", false))
|
87
87
|
ca.add_extension(ef.create_extension("authorityKeyIdentifier", "keyid:always", false))
|
88
|
-
ca.sign(key, OpenSSL::Digest
|
88
|
+
ca.sign(key, OpenSSL::Digest.new("SHA256"))
|
89
89
|
# Generate the SHA1 fingerprint of the der format of the X 509 certificate
|
90
90
|
@fingerprint = OpenSSL::Digest::SHA1.new(ca.to_der)
|
91
91
|
# Create the pfx format of the certificate
|
@@ -142,7 +142,7 @@ module Azure
|
|
142
142
|
puts "Certificate Thumbprint: #{@thumbprint.to_s.upcase}"
|
143
143
|
puts "*" * 70
|
144
144
|
|
145
|
-
|
145
|
+
config[:ca_trust_file] = file_path + ".pem" if config[:ca_trust_file].nil?
|
146
146
|
cert_data = File.read (file_path + ".b64")
|
147
147
|
add_certificate cert_data, @winrm_cert_passphrase, "pfx", cert_params[:azure_dns_name]
|
148
148
|
@thumbprint
|
@@ -216,7 +216,7 @@ module Azure
|
|
216
216
|
cert.add_extension(ef.create_extension("subjectKeyIdentifier", "hash", false))
|
217
217
|
cert.add_extension(ef.create_extension("authorityKeyIdentifier", "keyid:always", false))
|
218
218
|
cert.add_extension(ef.create_extension("extendedKeyUsage", "1.3.6.1.5.5.7.3.1", false))
|
219
|
-
cert.sign(rsa_key, OpenSSL::Digest
|
219
|
+
cert.sign(rsa_key, OpenSSL::Digest.new("SHA1"))
|
220
220
|
@thumbprint = OpenSSL::Digest::SHA1.new(cert.to_der)
|
221
221
|
cert
|
222
222
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Aiman Alsari (aiman.alsari@gmail.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Jeff Mendoza (jeffmendoza@live.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Jeff Mendoza (jeffmendoza@live.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require_relative "azure_base"
|
19
|
+
require_relative "helpers/azure_base"
|
20
20
|
|
21
21
|
class Chef
|
22
22
|
class Knife
|
@@ -50,9 +50,9 @@ class Chef
|
|
50
50
|
:azure_service_location)
|
51
51
|
|
52
52
|
params = {
|
53
|
-
azure_ag_name:
|
54
|
-
azure_ag_desc:
|
55
|
-
azure_location:
|
53
|
+
azure_ag_name: config[:azure_affinity_group],
|
54
|
+
azure_ag_desc: config[:azure_ag_desc],
|
55
|
+
azure_location: config[:azure_service_location],
|
56
56
|
}
|
57
57
|
|
58
58
|
rsp = service.create_affinity_group(params)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Jeff Mendoza (jeffmendoza@live.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require_relative "azure_base"
|
19
|
+
require_relative "helpers/azure_base"
|
20
20
|
|
21
21
|
class Chef
|
22
22
|
class Knife
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# Author:: Barry Davis (barryd@jetstreamsoftware.com)
|
3
3
|
# Author:: Seth Chisamore (<schisamo@chef.io>)
|
4
4
|
# Author:: Adam Jacob (<adam@chef.io>)
|
5
|
-
# Copyright:: Copyright
|
5
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
6
6
|
# License:: Apache License, Version 2.0
|
7
7
|
#
|
8
8
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# limitations under the License.
|
19
19
|
#
|
20
20
|
|
21
|
-
require_relative "azure_base"
|
21
|
+
require_relative "helpers/azure_base"
|
22
22
|
|
23
23
|
class Chef
|
24
24
|
class Knife
|
@@ -40,7 +40,7 @@ class Chef
|
|
40
40
|
validate_asm_keys!
|
41
41
|
items = service.list_images
|
42
42
|
|
43
|
-
image_labels = !
|
43
|
+
image_labels = !config[:show_all_fields] ? %w{Name OS Location} : %w{Name Category Label OS Location}
|
44
44
|
image_list = image_labels.map { |label| ui.color(label, :bold) }
|
45
45
|
|
46
46
|
image_items = image_labels.map(&:downcase)
|
@@ -49,7 +49,7 @@ class Chef
|
|
49
49
|
end
|
50
50
|
|
51
51
|
puts "\n"
|
52
|
-
puts ui.list(image_list, :uneven_columns_across, !
|
52
|
+
puts ui.list(image_list, :uneven_columns_across, !config[:show_all_fields] ? 3 : 5)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Aiman Alsari (aiman.alsari@gmail.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require_relative "azure_base"
|
19
|
+
require_relative "helpers/azure_base"
|
20
20
|
|
21
21
|
class Chef
|
22
22
|
class Knife
|
@@ -50,10 +50,10 @@ class Chef
|
|
50
50
|
validate_asm_keys!(:azure_load_balancer)
|
51
51
|
|
52
52
|
params = {
|
53
|
-
azure_load_balancer:
|
54
|
-
azure_lb_static_vip:
|
55
|
-
azure_subnet_name:
|
56
|
-
azure_dns_name:
|
53
|
+
azure_load_balancer: config[:azure_load_balancer],
|
54
|
+
azure_lb_static_vip: config[:azure_lb_static_vip],
|
55
|
+
azure_subnet_name: config[:azure_subnet_name],
|
56
|
+
azure_dns_name: config[:azure_dns_name],
|
57
57
|
}
|
58
58
|
|
59
59
|
rsp = service.create_internal_lb(params)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Aiman Alsari (aiman.alsari@gmail.com)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require_relative "azure_base"
|
19
|
+
require_relative "helpers/azure_base"
|
20
20
|
|
21
21
|
class Chef
|
22
22
|
class Knife
|