cookbook 'msazure_expanded', '~> 0.1.0'
msazure_expanded (1) Versions 0.1.0 Follow4
An Expansion of the microsoft_azure cookbook which includes more Azure API's
cookbook 'msazure_expanded', '~> 0.1.0', :supermarket
knife supermarket install msazure_expanded
knife supermarket download msazure_expanded
msazure_expanded Cookbook
This cookbook is a direct expansion of the microsoft_azure cookbook created by Jeff Mendoza (jemendoz@microsoft.com).
The microsoft_azure cookbook only provides for a couple Azure API services. The msazure_expanded cookbook adds additional services not accounted for in the original cookbook.
Requirements
Cookbooks
- "microsoft_azure" cookbook ~>0.2.0
Attributes
Usage
Please refer to the "microsoft_azure" README file to understand how to use the resources provided in it, and the msazure_expanded
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Pete Navarra (@Vapok)
Recipes
default.rb
The default recipe installs the azure
RubyGem, which this cookbook
requires in order to work with the Azure API. Make sure that the
microsoft_azure recipe is in the node or role run_list
before any
resources from this cookbook are used.
"run_list": [
"recipe[msazure_expanded]"
]
The gem_package
is created as a Ruby Object and thus installed
during the Compile Phase of the Chef run.
Resources and Providers
msazure_expanded_vm_images
vm_images.rb
Loads available Azure VM Images with this resource into a resource attribute.
Actions:
-
init
- Initializes the Resource.
Attribute Parameters:
-
management_certificate
- PEM file contents of Azure management certificate, required. -
subscription_id
- ID of Azure subscription, required. -
management_endpoint
- Endpoint for Azure API, defaults tomanagement.core.windows.net
. -
list_of_images
- List of available images loaded during Action Init
Recipe Example
msazure_expanded_vm_images 'images_listing' do
management_certificate microsoft_azure['management_certificate'].join("\n")
subscription_id microsoft_azure['subscription_id']
action :init
end
Retrieving Output of Resource
ruby_block 'show_images' do
block do
r = resources("msazure_expanded_vm_images[images_listing]")
images = r.list_of_images
if images.kind_of?(Array) && images.count > 0
images.take(10).each do |image|
puts "From Recipe: Image: #{image}"
end
else
puts "Images not loaded?"
end
end
action :run
end
Dependent cookbooks
microsoft_azure ~> 0.2.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
msazure_expanded CHANGELOG
This file is used to list changes made in each version of the msazure_expanded cookbook. This cookbook is a direct expansion of the original microsoft_azure cookbook that is not fully complete.
0.1.0
- [Pete Navarra (@Vapok)] - 10/9/2015
- Initial release of msazure_expanded
- Includes vm_images listing resource
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: msazure_expanded/metadata.rb:1
FC065: Ensure source_url is set in metadata: msazure_expanded/metadata.rb:1
FC066: Ensure chef_version is set in metadata: msazure_expanded/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: msazure_expanded/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: msazure_expanded/resources/vm_images.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: msazure_expanded/metadata.rb:1
FC065: Ensure source_url is set in metadata: msazure_expanded/metadata.rb:1
FC066: Ensure chef_version is set in metadata: msazure_expanded/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: msazure_expanded/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: msazure_expanded/resources/vm_images.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
FC065: Ensure source_url is set in metadata: msazure_expanded/metadata.rb:1
FC066: Ensure chef_version is set in metadata: msazure_expanded/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: msazure_expanded/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: msazure_expanded/resources/vm_images.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number