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

netstat (2) Versions 0.1.0

Installs netstat network tool. Recommended for Docker containers.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'netstat', '= 0.1.0'
cookbook 'netstat', '= 0.1.0', :supermarket
knife cookbook site install netstat
knife cookbook site download netstat
README
Dependencies
Changelog
Quality 100%

Netstat Cookbook

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
  • SUSE
  • Ubuntu

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

Required Applications

  • Ruby 1.9.3 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.

netstat CHANGELOG

This file is used to list changes made in each version of the netstat cookbook.

v0.1.0 (2015-07-15)

  • Initial release of netstat.

Foodcritic Metric
            

0.1.0 passed this metric