<commit_before># HTTPD Cookbook

[![Code Climate](https://codeclimate.com/github/chef-cookbooks/httpd/badges/gpa.svg)](https://codeclimate.com/github/chef-cookbooks/httpd) [![Build Status](https://travis-ci.org/chef-cookbooks/httpd.svg?branch=master)](https://travis-ci.org/chef-cookbooks/httpd) [![Cookbook Version](https://img.shields.io/cookbook/v/httpd.svg)](https://supermarket.chef.io/cookbooks/httpd)

The HTTPD Cookbook is a Library Cookbook that provides resource primitives for use in recipes. It is designed to be an example to reference for creating highly re-usable cross platform cookbooks.

## Scope

This cookbook is concerned with [The Apache HTTP Server](http://httpd.apache.org/), particularly those shipped with F/OSS Unix and Linux distributions. It does not address other httpd server implementations like Lighttpd, Nginx, or IIS.

## Requirements

- Chef 12.0.0 or higher
- Network accessible package repositories

## Platform Support

The following platforms have been tested with Test Kitchen:

```
|----------------+-----+-----+-----|
|                | 2.0 | 2.2 | 2.4 |
|----------------+-----+-----+-----|
| debian-7       |     | X   |     |
|----------------+-----+-----+-----|
| debian-8       |     |     | X   |
|----------------+-----+-----+-----|
| ubuntu-12.04   |     | X   |     |
|----------------+-----+-----+-----|
| ubuntu-14.04   |     |     | X   |
|----------------+-----+-----+-----|
| ubuntu-16.04   |     |     | X   |
|----------------+-----+-----+-----|
| centos-5       |     | X   |     |
|----------------+-----+-----+-----|
| centos-6       |     | X   |     |
|----------------+-----+-----+-----|
| centos-7       |     |     | X   |
|----------------+-----+-----+-----|
| fedora-23      |     |     | X   |
|----------------+-----+-----+-----|
| opensuse-13.2  |     |     | X   |
|----------------+-----+-----+-----|
```

## Cookbook Dependencies

- compat_resource

## Usage

Place a dependency on the httpd cookbook in your cookbook's metadata.rb

```ruby
depends 'httpd', '~> 0.3'
```

Then, in a recipe:

```ruby
httpd_service 'default' do<commit_msg>Remove 2.0 from the readme test matrix<commit_after># HTTPD Cookbook

[![Code Climate](https://codeclimate.com/github/chef-cookbooks/httpd/badges/gpa.svg)](https://codeclimate.com/github/chef-cookbooks/httpd) [![Build Status](https://travis-ci.org/chef-cookbooks/httpd.svg?branch=master)](https://travis-ci.org/chef-cookbooks/httpd) [![Cookbook Version](https://img.shields.io/cookbook/v/httpd.svg)](https://supermarket.chef.io/cookbooks/httpd)

The HTTPD Cookbook is a Library Cookbook that provides resource primitives for use in recipes. It is designed to be an example to reference for creating highly re-usable cross platform cookbooks.

## Scope

This cookbook is concerned with [The Apache HTTP Server](http://httpd.apache.org/), particularly those shipped with F/OSS Unix and Linux distributions. It does not address other httpd server implementations like Lighttpd, Nginx, or IIS.

## Requirements

- Chef 12.0.0 or higher
- Network accessible package repositories

## Platform Support

The following platforms have been tested with Test Kitchen:

```
|----------------+-----+-----|
|                | 2.2 | 2.4 |
|----------------+-----+-----|
| debian-7       | X   |     |
|----------------+-----+-----|
| debian-8       |     | X   |
|----------------+-----+-----|
| ubuntu-12.04   | X   |     |
|----------------+-----+-----|
| ubuntu-14.04   |     | X   |
|----------------+-----+-----|
| ubuntu-16.04   |     | X   |
|----------------+-----+-----|
| centos-5       | X   |     |
|----------------+-----+-----|
| centos-6       | X   |     |
|----------------+-----+-----|
| centos-7       |     | X   |
|----------------+-----+-----|
| fedora-23      |     | X   |
|----------------+-----+-----|
| opensuse-13.2  |     | X   |
|----------------+-----+-----|
```

## Cookbook Dependencies

- compat_resource

## Usage

Place a dependency on the httpd cookbook in your cookbook's metadata.rb

```ruby
depends 'httpd', '~> 0.3'
```

Then, in a recipe:

```ruby
httpd_service 'default' do
{'fraction_non_alphanumeric': 0.2973498662776562, 'fraction_numerical': 0.016532944322878676, 'mean_word_length': 1.5923125393824826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7671548', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1279, 'n_words': 288}