Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

msazure_expanded (1) Versions 0.1.0

An Expansion of the microsoft_azure cookbook which includes more Azure API's

Berkshelf/Librarian
Policyfile
Knife
cookbook 'msazure_expanded', '~> 0.1.0'
cookbook 'msazure_expanded', '~> 0.1.0', :supermarket
knife cookbook site install msazure_expanded
knife cookbook site download msazure_expanded
README
Dependencies
Changelog
Quality 22%

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

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. 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 to management.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

FC059: LWRP provider does not declare use_inline_resources: msazure_expanded/providers/vm_images.rb:1
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 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.0 failed this metric

msazure_expanded does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

0.1.0 passed this metric

Publish Metric
            

0.1.0 passed this metric

Supported Platforms Metric
            

0.1.0 failed this metric

msazure_expanded should declare what platform(s) it supports.

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