voxpupuli/puppet-healthcheck

Name: puppet-healthcheck

Owner: Vox Pupuli

Description: Puppet resources to evaluate the health and status of things.

Created: 2015-05-20 10:44:49.0

Updated: 2018-05-23 05:58:29.0

Pushed: 2018-05-23 05:58:28.0

Homepage: https://forge.puppet.com/puppet/healthcheck

Size: 109

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

puppet-healthcheck

Types
tcp_conn_validator

tcp_conn_validator is used to verify that a service is listening on a given port. It could be used to test either a remote or a local service. It support both IPv4 and IPv6 connection strings. It also works with hostname.

conn_validator { 'foo-machine ssh service' :
st => '192.168.0.42',
rt   => 22,

The namevar of this resource can also be the connection string. It comes handy when one already have an array of ip:port or hostname:port string to test.

odb_cluster_nodes = ['192.168.0.2:27017', 'node02.foo.bar.com:27017']
conn_validator { $mongodb_cluster_nodes : }
host

IP address or server DNS name on which the service is supposed to be bound to. Required if the namevar is not a connection string.

port

Port on which the service is supposed to listen. Required if the namevar is not a connection string.

try_sleep

The time to sleep in seconds between ?tries?. Default: 1

timeout

Number of seconds to wait before timing out. Default: 60

http_conn_validator

http_conn_validator is used to verify that an http server is answering on a given port. It could be used to test either a remote or a local service. It support both IPv4 and IPv6 connection strings. It also works with hostname.

_conn_validator { 'foo-machine home' :
st    => '127.0.0.1',
rt    => 80,
e_ssl => true,

The namevar of this resource can also be the connection string. It comes handy when one already have an array of URLs string to test.

i_cluster_nodes = ['https://server1.com/test-url', 'https://server2.com/test-url']
_conn_validator { $appli_cluster_nodes : }
host

IP address or server DNS name on which the service is supposed to be bound to. Required if the namevar is not a connection string.

port

Port on which the service is supposed to listen. Required if the namevar is not a connection string.

use_ssl

Whether the connection will be attempted using https. Default: false

test_url

URL to use for testing if the HTTP server is up. Default: /

try_sleep

The time to sleep in seconds between ?tries?. Default: 1

timeout

Number of seconds to wait before timing out. Default: 60

expected_code

Expected HTTP result code to consider success. Default: 200

verify_peer

Whether to verify the peer credentials, if possible. Verification will not take place if the CA certificate is missing


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.