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

Select Status

RSS

msazure_expanded (1) Versions 0.1.0

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

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

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

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