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

selfsigned_certificate (1) Versions 0.1.0

Creates/Installs/Configures a selfsigned certificate

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

selfsigned_certificate cookbook

This cookbook allow you to create a self signed certificate using openssl. The certificate is configured using the provided attributes.

Requirements

No requirement. Openssl package will be installed along the default recipe.

Usage

Testing

You can test the cookbook using the provided <code>Vagrantfile</code>. Make sure you edit sample attribute provided in the Vagrantfile to match your test needs.

Beware: vagrant 1.2.x aka Vagrant 2 is mandatory.

Depending on this cookbook

  1. Make your cookbook depends on this cookbook (e.g. in your Berksfile if you are using berkshelf, and in your metadata).
  2. You must override all the attributes as described below, except <code>node.selfsigned_certifcate[:destination]</code> which is recommended but not compulsory.
  3. Call the recipe using <code>include_recipe 'selfsigned_certificate'</code>
  4. You can then use the generated certificate in your own template using the attribute <code>node.selfsigned_certifcate[:destination]/server.crt</code> (and <code>.key</code>), for instance for nginx or Apache configuration.

Attributes

  • <code>node.selfsigned_certifcate[:destination]</code> : Where to store the created self-signed certificate.
  • <code>node.selfsigned_certifcate[:passphrase]</code> : The passphrase used to generate the request for signature and self CA signature. Obviously very sensible, you should configure it in your attribute files using a databag.
  • <code>node.selfsigned_certifcate[:country]</code> : Country code for the certificate.
  • <code>node.selfsigned_certifcate[:state]</code> : State for the certificate.
  • <code>node.selfsigned_certifcate[:city]</code> : City for the certificate.
  • <code>node.selfsigned_certifcate[:orga]</code> : Organisation for the certificate.
  • <code>node.selfsigned_certifcate[:depart]</code> : Departement for the certificate.
  • <code>node.selfsigned_certifcate[:cn]</code> : Common name for the certificate.
  • <code>node.selfsigned_certifcate[:email]</code> : Contact email for the certificate.

Recipes

Default recipe in current version.

Todo

  • Unit tests

Author

Author:: Christophe Gravier (christophe.gravier@univ-st-etienne.fr)

Licence:: Apache 2.0

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

abiquo Applicable Versions

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: selfsigned_certificate/metadata.rb:1
FC065: Ensure source_url is set in metadata: selfsigned_certificate/metadata.rb:1
FC066: Ensure chef_version is set in metadata: selfsigned_certificate/metadata.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