Adoptable Cookbooks List

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.

Requirements

Chef

Platform

Notes: This cookbook has been tested on the listed platforms. It may work on other platforms with or without modification.

Cookbooks

build-essential

yum-epel

Recipes

default

Installs the NRPE client via packages or source depending on platform and attributes set

configure

Configures the NRPE client. This will be called internally by the default recipe but can also be used to re-configure later on.

Attributes

platform specific attributes (auto set based on platform)

node['nrpe']['install_method'] - whether to install from package or source. Default chosen by platform based on known packages available for NRPE: debian/ubuntu 'package', Redhat/CentOS/Fedora/Scientific: source

node['nrpe']['packages'] - nrpe / plugin packages to install. The default attribute for RHEL/Fedora platforms contains a bare minimum set of packages. The full list of available packages is available at: http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/letter_n.group.html

options for package install

node['nrpe']['install_yum-epel'] - whether to install the EPEL repo or not. The default value is true. Set this to false if you do not wish to install the EPEL RPM; in this scenario you will need to make the relevant NRPE packages available via another method e.g. local repo.

nrpe.conf attributes

node['nrpe']['server_address'] - the IP the nrpe server will listen on. This allows you to bind to particular IPs in situations where the system has more than one IP. This is particularly handy in determining if nrpe should bind to the internal or public IP in a cloud environment. Set the attribute to the node attribute for the cloud interface you wish to use. Defaults to nil (not enabled)

authorization and server discovery

node['nrpe']['server_role'] - the role that the Nagios server will have in its run list that the clients can search for.

node['nrpe']['allowed_hosts'] - additional hosts that are allowed to connect to this client. Must be an array of strings (i.e. %w(test.host other.host)). These hosts are added in addition to 127.0.0.1, ::1, and IPs that are found via search.

License & Authors

Copyright 2009, 37signals
Copyright 2009-2017, Chef Software, Inc.
Copyright 2012, Webtrends Inc.
Copyright 2013-2014, Limelight Networks, Inc.
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.

2.0.4 (2018-12-14)

2.0.3 (2018-02-18)

2.0.2 (2017-07-13)

2.0.1 (2017-07-13)

Allow option to disable PID file as it's not needed by systemd and causes issues with SELinux at this time

2.0.0 (2017-03-03)

Convert the check LWRP to a custom resource with simplified restart logic. This increases the requirement of Chef to 12.9 or later

Add support for package installs on openSUSE Leap

Update RHEL platforms to use the nrpe user and pid file defined in the package

Remove logic which built node['nrpe']['checks'] as it broke on modern Chef clients

Added Chefspec matchers for the check resource

Use multi-package installs to speed up package installs

Simplify the Fedora check in the attributes file

Rework test kitchen testing and test the check resource in Travis

Switch from testing in Rake to Delivery local mode

1.6.4 (2016-09-07)

Only restart NRPE at the end of the chef-run

1.6.3 (2016-08-12)

Updated cookbook to support nrpe 3.0 using source install method

Added ability to define node['nrpe']['bin_dir'], default to /usr/sbin

Removed duplicate line from README.md for node['nrpe']['conf_dir'] attribute

1.6.2 (2016-08-12)

Fixing service reload/restart issue

Fixing the use_inline_resources error on chef 12 client

1.6.0 (2016-07-21)

Added support for openSUSE via source install

Added chef_version to the metadata

Updated the monitoring plugins to 2.1.2 for source installs

Fixed user/group creation in the source recipe, which would fail chef runs

Fixed source installs for systemd based distros by properly managing the unit file

Resolved a scenario where the NRPE compilation could fail and never run again

Ensured we run the NRPE process using our attribute defined user/group in the source recipe

Ensured NRPE is compiled into /usr/sbin not /usr/bin so init / systemd files work

Require Chef 11. Chef 10 is end of life moving to Chef 11 allows us to remove Ruby 1.8.7 backwards compatibility

Removed support for Fedora < 17

Enabled caching the Chefspecs to speedup runs 3.5X

Removed make from source installs as build-essential already handles this

Added a Rakefile for simplified testing

Disabled FC003 with a .foodcritic file

Removed the Vagrantfile as we already have a Kitchen file

Switched from Rubocop to Cookstyle and resolve all warnings

Added yum to the Berksfile for integration testing

Removed chef-solo-search from the Berksfile as we don't need this for testing -

1.5.4

Documentation fix for pid_file attribute

Make sure that systemd unit file matches the nrpe user attribute

1.5.3

Add template support for config files

Remove node.set in default recipe (Issue #27)

1.5.2

Fedora 20+ / RHEL 7+ systems now run the daemon as nrpe/nrpe since the user installed by the package changed

Fedora 20+ / RHEL 7+ systems now restart on check updates since the systemd scipt doesn't include a reload action

Removed the retry count for starting the NRPE service, which didn't fix the real issue on RHEL 7+

1.5.0

Added 3 retries with a delay of 3 to the nrpe service start for RHEL/CentOS 7

Added ability to define node['nrpe']['packages'] as a Hash to add version information as sample below. In your environment specific cookbook, this version infomation for each individual package can be overriden for required versions (instead of latest one). If it is nil it will install latest one from repositories.