knife-azure 2.0.11 → 2.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/azure/resource_management/ARM_interface.rb +5 -5
- data/lib/azure/resource_management/windows_credentials.rb +1 -1
- data/lib/chef/knife/azure_ag_create.rb +1 -1
- data/lib/chef/knife/azure_ag_list.rb +1 -1
- data/lib/chef/knife/azure_image_list.rb +1 -1
- data/lib/chef/knife/azure_internal-lb_create.rb +1 -1
- data/lib/chef/knife/azure_internal-lb_list.rb +1 -1
- data/lib/chef/knife/azure_server_create.rb +1 -1
- data/lib/chef/knife/azure_server_delete.rb +1 -1
- data/lib/chef/knife/azure_server_list.rb +1 -1
- data/lib/chef/knife/azure_server_show.rb +1 -1
- data/lib/chef/knife/azure_vnet_create.rb +1 -1
- data/lib/chef/knife/azure_vnet_list.rb +1 -1
- data/lib/chef/knife/azurerm_server_create.rb +1 -1
- data/lib/chef/knife/azurerm_server_delete.rb +1 -1
- data/lib/chef/knife/azurerm_server_list.rb +1 -1
- data/lib/chef/knife/azurerm_server_show.rb +1 -1
- data/lib/chef/knife/bootstrap_azure.rb +1 -1
- data/lib/chef/knife/bootstrap_azurerm.rb +1 -1
- data/lib/chef/knife/{azure_base.rb → helpers/azure_base.rb} +0 -0
- data/lib/chef/knife/{azurerm_base.rb → helpers/azurerm_base.rb} +0 -0
- data/lib/knife-azure/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9baf62dbe0e3f274214deaf426511698b3ed0acbcb5cacbfa2e1d0b7d557a6d2
|
4
|
+
data.tar.gz: 634f4598fbb9b5b65779d211df0de9fa6062635c4b3ebf56d31909547b47980a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f15b38070e1a624376327ff112dc753d53d717363b11c60057373ce14e9a3b91bf32264718d44456d3e4b89ca839371d35ac08b9b8bd843c9219c00a84ed8089
|
7
|
+
data.tar.gz: 763b6e6b17c6e14c0ea32e6bcb0a3b79c1c2b37984e0ed25a84f4259eaa56a23ced45eafc46d3d691dbd8dd0e23cbefadf7414acb8baa7ab7fbff0b440a51515
|
@@ -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
|
@@ -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]
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require_relative "azurerm_base"
|
19
|
+
require_relative "helpers/azurerm_base"
|
20
20
|
require "chef/knife/bootstrap"
|
21
21
|
require "chef/knife/bootstrap/client_builder"
|
22
22
|
require_relative "bootstrap/common_bootstrap_options"
|
File without changes
|
File without changes
|
data/lib/knife-azure/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-azure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barry Davis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '15.1'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: chef-bin
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '15.1'
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '15.1'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: nokogiri
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,7 +193,6 @@ files:
|
|
207
193
|
- lib/azure/service_management/vnet.rb
|
208
194
|
- lib/chef/knife/azure_ag_create.rb
|
209
195
|
- lib/chef/knife/azure_ag_list.rb
|
210
|
-
- lib/chef/knife/azure_base.rb
|
211
196
|
- lib/chef/knife/azure_image_list.rb
|
212
197
|
- lib/chef/knife/azure_internal-lb_create.rb
|
213
198
|
- lib/chef/knife/azure_internal-lb_list.rb
|
@@ -217,7 +202,6 @@ files:
|
|
217
202
|
- lib/chef/knife/azure_server_show.rb
|
218
203
|
- lib/chef/knife/azure_vnet_create.rb
|
219
204
|
- lib/chef/knife/azure_vnet_list.rb
|
220
|
-
- lib/chef/knife/azurerm_base.rb
|
221
205
|
- lib/chef/knife/azurerm_server_create.rb
|
222
206
|
- lib/chef/knife/azurerm_server_delete.rb
|
223
207
|
- lib/chef/knife/azurerm_server_list.rb
|
@@ -226,6 +210,8 @@ files:
|
|
226
210
|
- lib/chef/knife/bootstrap/common_bootstrap_options.rb
|
227
211
|
- lib/chef/knife/bootstrap_azure.rb
|
228
212
|
- lib/chef/knife/bootstrap_azurerm.rb
|
213
|
+
- lib/chef/knife/helpers/azure_base.rb
|
214
|
+
- lib/chef/knife/helpers/azurerm_base.rb
|
229
215
|
- lib/knife-azure/version.rb
|
230
216
|
homepage: https://github.com/chef/knife-azure
|
231
217
|
licenses:
|