Giter Site home page Giter Site logo

serverspec-healthcheck-cookbook's Introduction

serverspec-healthcheck Cookbook

Idea is to prepare a machine which is smart enough to check its own health and report it back as a web page.

Specifically, it would be helpful for load balancers. As Load Balancers check health of system and stop sending traffic if it's not healthy. This health check is usually done using a URL. The generated health check page can be used for this URL then. If self-check fails, it will return a 3xx status code, otherwise 200 status code.

Self health check can also be useful in continuous delivery and if check fails after deploy, deployer will be notified right away instead of asking the developer.

To achieve this goal, 'Serverspec' is being used. So, Serverspec will be installed on the instance. 'spec' files go to 'files' directory and healthcheck page will be generated based on it.

Requirements

TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.

e.g.

Platforms

  • Ubuntu 14.04 or later
  • 1024 MB of RAM to handle ruby2 install

Chef

  • Chef 12.0 or later

Cookbooks

  • apt - serverspec-healthcheck needs apt to do apt-get update.

Kitchen Test

This cookbook is tested with Kitchen (rspec as busser).

Attributes

TODO: List your cookbook attributes here.

e.g.

serverspec-healthcheck::default

Key Type Description Default
['serverspec-healthcheck']['bacon'] Boolean whether to include bacon true

Usage

serverspec-healthcheck::default

TODO: Write usage instructions for each cookbook.

Just include serverspec-healthcheck in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[serverspec-healthcheck]"
  ]
}

You need to introduce path to your spec files in attributes.

Contributing

TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.

e.g.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: TODO: List authors

serverspec-healthcheck-cookbook

serverspec-healthcheck-cookbook's People

Contributors

mkianpour avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.