kitchen-azurerm 0.1.2 → 0.1.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: d1392862ee3f3f20c62aa95d89565b1d86451624
4
- data.tar.gz: b430a55ccc4d41297dfb9518630a37e48b116c05
3
+ metadata.gz: 995ca89c612cad9ae93bce1d11d45cbc274af624
4
+ data.tar.gz: 34e2d245c90a46f9dad073958514c616be972244
5
5
  SHA512:
6
- metadata.gz: 107f96c6c1dbb7512a31811ac68d6d0491836dd92932db676cb5edd96694450ef2c9382379f11ec0e2a293df58b9d6c8970dd5dddffee3927c519f669a134b5a
7
- data.tar.gz: 3c5e11e9c0df04fdfda2d1bae924d3602b2c6c2ad60cd6dd6704fad51fb712abcfbdb2ffc586ba7f06e1fde8617d2df4b82848e08b4996d87d6fef7185cae894
6
+ metadata.gz: 81a2221a1fcd71bcb2ece838c3ef09fb163e8169ffc0c5e13a5142628b02d87e10cff6731b1cb09ada8e6518c2e41ca33a92084483e53cbdf9cd41e82103c6dc
7
+ data.tar.gz: a88e44fd81647004a8fa2b5eadfb40ab6a86c23904ab1e195fa42c6ef11f3da30fb32aa5f06d3296dfe6a7fa9877aead434dca008b4c8068354f596fae38619b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
1
  # knife-azurerm Changelog
2
+ ## [0.1.3] - 2015-09-23
3
+ - Support *nix by changing the driver name to lowercase 'azurerm', remove Chef references (@gadgetmg)
4
+
2
5
  ## [0.1.2] - 2015-09-23
3
6
  - Initial release, supports provision of all public image types in Azure (@stuartpreston)
data/README.md CHANGED
@@ -4,8 +4,11 @@
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/kitchen-azurerm.svg)](http://badge.fury.io/rb/kitchen-azurerm)
6
6
 
7
+ This version has been tested on Windows only, and may not work on OSX/Linux.
8
+
7
9
  ## Known issues
8
- - WinRM support is not complete, Windows machines will not converge. They will provision fine however.
10
+ - WinRM support is not complete, Windows machines will not converge. They will provision (and destroy) correctly, however.
11
+ - Azure SDK for Ruby has blocking issues on OSX/Linux environments, this is being tracked here: (https://github.com/Azure/azure-sdk-for-ruby/pull/282)
9
12
 
10
13
  ## Quick-start
11
14
  ### Installation
@@ -17,11 +20,11 @@ Note if you are running the ChefDK you may need to prefix the command with chef,
17
20
 
18
21
  ### Configuration
19
22
 
20
- For the driver to interact with the Microsoft Azure Resource management REST API, a Service Principal needs to be configured with Owner rights against the specific subscription being targeted. Using an Organization account and related password is no longer supported. To create a Service Principal and apply the correct permissions, follow the instructions in the article: [Authenticating a service principal with Azure Resource Manager](https://azure.microsoft.com/en-us/documentation/articles/resource-group-authenticate-service-principal/#authenticate-service-principal-with-password---azure-cli)
23
+ For the driver to interact with the Microsoft Azure Resource management REST API, a Service Principal needs to be configured with Owner rights against the specific subscription being targeted. Using an Organizational (AAD) account and related password is no longer supported. To create a Service Principal and apply the correct permissions, follow the instructions in the article: [Authenticating a service principal with Azure Resource Manager](https://azure.microsoft.com/en-us/documentation/articles/resource-group-authenticate-service-principal/#authenticate-service-principal-with-password---azure-cli)
21
24
 
22
- You will essentially need 4 parameters from the above article to configure Chef Provisioning: **Subscription ID**, **Client ID**, **Client Secret/Password** and **Tenant ID**. These can be easily obtained using the azure-cli tools (v0.9.8 or higher) on any platform.
25
+ You will essentially need 4 parameters from the above article to configure kitchen-azurerm: **Subscription ID**, **Client ID**, **Client Secret/Password** and **Tenant ID**. These can be easily obtained using the azure-cli tools (v0.9.8 or higher) on any platform.
23
26
 
24
- Using a text editor, open or create the file ```~/.azure/credentials``` and add the following section:
27
+ Using a text editor, open or create the file ```~/.azure/credentials``` and add the following section, noting there is one section per Subscription ID.
25
28
 
26
29
  ```ruby
27
30
  [abcd1234-YOUR-GUID-HERE-abcdef123456]
@@ -30,7 +33,7 @@ client_secret = "your-client-secret-here"
30
33
  tenant_id = "9c117323-YOUR-GUID-HERE-9ee430723ba3"
31
34
  ```
32
35
 
33
- If preferred, you may also set the following environment variables.
36
+ If preferred, you may also set the following environment variables, however this would be incompatible with supporting multiple Azure subscriptions.
34
37
 
35
38
  ```ruby
36
39
  AZURE_CLIENT_ID="48b9bba3-YOUR-GUID-HERE-90f0b68ce8ba"
@@ -47,7 +50,7 @@ Here's an example ```.kitchen.yml``` file that provisions 3 different types of U
47
50
  ```yml
48
51
  ---
49
52
  driver:
50
- name: AzureRM
53
+ name: azurerm
51
54
 
52
55
  driver_config:
53
56
  subscription_id: '4801fa9d-YOUR-GUID-HERE-b265ff49ce21'
@@ -87,7 +90,7 @@ Here's a further example ```.kitchen.yml``` file that will provision a Windows S
87
90
  ```yml
88
91
  ---
89
92
  driver:
90
- name: AzureRM
93
+ name: azurerm
91
94
 
92
95
  driver_config:
93
96
  subscription_id: '4801fa9d-YOUR-GUID-HERE-b265ff49ce21'
@@ -116,7 +119,7 @@ You can use the azure (azure-cli) command line tools to interrogate for the Urn.
116
119
 
117
120
  ```$ azure vm image list "West Europe" Canonical UbuntuServer```
118
121
 
119
- This will return a list like the following:
122
+ This will return a list like the following, from which you can derive the Urn.
120
123
 
121
124
  ```
122
125
  data: Publisher Offer Sku OS Version Location Urn
@@ -7,9 +7,9 @@ require 'azure_mgmt_network'
7
7
  module Kitchen
8
8
  module Driver
9
9
  #
10
- # AzureRM
10
+ # Azurerm
11
11
  #
12
- class AzureRM < Kitchen::Driver::Base
12
+ class Azurerm < Kitchen::Driver::Base
13
13
  attr_accessor :resource_management_client
14
14
 
15
15
  default_config(:azure_resource_group_name) do |config|
@@ -16,7 +16,7 @@ module Kitchen
16
16
  if File.file?(config_file)
17
17
  @credentials = IniFile.load(File.expand_path(config_file))
18
18
  else
19
- Chef::Log.warn "#{CONFIG_PATH} was not found or not accessible." unless File.file?(config_file)
19
+ warn "#{CONFIG_PATH} was not found or not accessible."
20
20
  end
21
21
  end
22
22
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-azurerm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Preston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-23 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inifile