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

netstat (2) Versions 0.2.0

Installs netstat network tool. Recommended for Docker containers.

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

Netstat Cookbook

GitHub
License

Cookbook Version
Dependency Status
Build Status

Chef cookbook to install netstat network tool. Recommended for Docker containers.

Requirements

Supported Platforms

This cookbook has been tested on the following platforms:

  • Amazon Linux
  • CentOS
  • Debian
  • Fedora
  • openSUSE
  • Oracle Linux
  • RedHat
  • Scientific Linux
  • SUSE
  • Ubuntu

Please, let me know if you use it successfully on any other platform.

Required Applications

  • Chef 12 or higher.
  • Ruby 2.2 or higher.

Platform Support Related Attributes

Some cookbook attributes are used internally to support the different platforms. Surely you want to change them if you want to support new platforms or want to improve the support of some platforms already supported.

Attribute Default Description
node['netstat']['packages'] calculated Package list to install netstat.

Recipes

netstat::default

Installs netstat.

Usage Examples

Including in a Cookbook Recipe

You can simply include it in a recipe:

include_recipe 'netstat'

Don't forget to include the netstat cookbook as a dependency in the metadata.

# metadata.rb
# [...]

depends 'netstat'

Including in the Run List

Another alternative is to include the default recipe in your Run List:

{
  "name": "www.example.com",
  "[...]": "[...]",
  "run_list": [
    "recipe[netstat]"
  ]
}

Deploy with Docker

You can use the Dockerfile included in the cookbook source code to run the cookbook inside a container:

$ docker build -t chef-netstat .
$ docker run -ti chef-netstat netstat -nptua

The sample Dockerfile:

FROM zuazo/chef-local:debian-7

COPY . /tmp/netstat
RUN berks vendor -b /tmp/netstat/Berksfile $COOKBOOK_PATH
RUN chef-client -r "recipe[apt],recipe[netstat]"

CMD ["netstat", "-nptua"]

See the chef-local container documentation for more examples.

Testing

See TESTING.md.

Contributing

Please do not hesitate to open an issue with any questions or problems.

See CONTRIBUTING.md.

TODO

See TODO.md.

License and Author

Author: Xabier de Zuazo (xabier@zuazo.org)
Copyright: Copyright (c) 2015, Xabier de Zuazo
License: Apache License, Version 2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Change Log

All notable changes to the netstat cookbook will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

0.2.0 - 2017-04-01

Added in 0.2.0

  • Add Scientific Linux support.
  • Add Chef 13 support.
  • metadata: Add source_url, issues_url add chef_version.
  • README: Add GitHub and license badges.

Removed in 0.2.0

  • Drop Chef < 12 and Ruby < 2.2 support.

Changed in 0.2.0

  • CHANGELOG: Follow "Keep a CHANGELOG".

Fixed in 0.2.0

  • metadata: Fix Oracle Linux name.

Improved in 0.2.0

  • Update TESTING documentation.
  • Update RuboCop to 0.48: new offenses fixed.

0.1.0 - 2015-07-15

  • Initial release of netstat.

Collaborator Number Metric
            

0.2.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.2.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.2.0 failed this metric

FC069: Ensure standardized license defined in metadata: netstat/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: netstat/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.2.0 passed this metric

Testing File Metric
            

0.2.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.2.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