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

nss_tools (2) Versions 0.1.1

Installs/Configures nss_tools

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

nss_tools-cookbook

This cookbook provides a LWRP for managing Mozilla NSS Certificate databaes.

Syntax

A nss_tools_certdb resource block manages a named entry in a Mozilla Certificate
database. The full syntax for all of the properties that are available to the
nss_tools_certdb:
ruby
nss_tools_certdb 'name' do
ca String, Array
crt String
dbprefix String
der String
directory String
key String
name String
notifies # see description
subscribes # see description
action Symbol # defaults to :update
end

where
* name is the name of the entry in the database (-n)
* directory is the directory of the database (-d), default: $HOME/.netscape
* dbprefix is the prefix of the database (see certutil for more info), optional
* ca, crt, der, key: see "Properties" section below

Actions

This resource has the following actions:

  • :update Default. Adds a new entry or checks to see if it is up-to-date with the source.
  • :delete Ensures that an entry doesn't exist.
  • :nothing Define this resource block to do nothing until notified by another resource to take action. When this resource is notified, this resource block is either run immediately or it is queued up to be run at the end of the chef-client run.

Properties

This resource has different properties depending on the input type. Input can
be certificate / key pairs in PEM or DER format. If both are passed PEM will
take priority.

PEM Certificate + Key (optionally CA)

  • ca (String, Array) (Optional): Path to a PEM encoded CA certificate or CA certificate bundle. Can also be an array of paths.
  • crt (String): Path to a PEM encoded certificate.
  • key (String): Path to a PEM encoded private key.

Example

nss_tools_certdb 'My Certificate' do
  directory   '/etc/myapp'
  dbprefix    'myapp'
  ca          '/etc/ssl/ca/my-ca.crt'
  crt         '/etc/ssl/cert/my-cert.crt'
  key         '/etc/ssl/private/my-cert.key'
  notifies    :restart, 'service[myapp]', :delayed
end

DER (PKCS12)

  • der (String): Path to PKCS12 DER encoded certificate / key (optionally CA) file.

Example

nss_tools_certdb 'My Certificate' do
  directory   '/etc/myapp'
  dbprefix    'myapp'
  der         '/etc/ssl/my-cert.p12'
  notifies    :restart, 'service[myapp]', :delayed
end

License and Authors

Author:: Altiscale, Inc (travis@altiscale.com)

License:: Apache 2.0

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of nss_tools

Collaborator Number Metric
            

0.1.1 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.1 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.1 failed this metric

FC066: Ensure chef_version is set in metadata: nss_tools/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: nss_tools/metadata.rb:1
FC069: Ensure standardized license defined in metadata: nss_tools/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.1 passed this metric

Testing File Metric
            

0.1.1 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.1 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