<commit_before># confd

[![Build Status](https://travis-ci.org/kelseyhightower/confd.png?branch=master)](https://travis-ci.org/kelseyhightower/confd)

* IRC: `#confd` on Freenode
* Mailing list: [Google Groups](https://groups.google.com/forum/#!forum/confd-users)

`confd` is a lightweight configuration management tool focused on:

* keeping local configuration files up-to-date by polling [etcd](https://github.com/coreos/etcd) and processing [template resources](https://github.com/kelseyhightower/confd#template-resources).
* reloading applications to pick up new config file changes

## Getting Started

### Installing confd

Download the latest binary from [Github](https://github.com/kelseyhightower/confd/releases).

### Building

You can build confd from source:

```
git clone https://github.com/kelseyhightower/confd.git
cd confd
go build
```

This will produce the `confd` binary in the current directory.

## Usage

The following commands will process all the [template resources](https://github.com/kelseyhightower/confd#template-resources) found under `/etc/confd/conf.d`.

### Poll the etcd cluster in 30 second intervals

The "/production" string will be prefixed to keys when querying etcd at http://127.0.0.1:4001.

```
confd -i 30 -p '/production' -n 'http://127.0.0.1:4001'
```

### Single run without polling

Using default settings run one time and exit.
<commit_msg>Add direct link to latest binaries<commit_after># confd

[![Build Status](https://travis-ci.org/kelseyhightower/confd.png?branch=master)](https://travis-ci.org/kelseyhightower/confd)

* IRC: `#confd` on Freenode
* Mailing list: [Google Groups](https://groups.google.com/forum/#!forum/confd-users)

`confd` is a lightweight configuration management tool focused on:

* keeping local configuration files up-to-date by polling [etcd](https://github.com/coreos/etcd) and processing [template resources](https://github.com/kelseyhightower/confd#template-resources).
* reloading applications to pick up new config file changes

## Getting Started

### Installing confd

Download the latest binary from [Github](https://github.com/kelseyhightower/confd/releases/tag/v0.1.2).

### Building

You can build confd from source:

```
git clone https://github.com/kelseyhightower/confd.git
cd confd
go build
```

This will produce the `confd` binary in the current directory.

## Usage

The following commands will process all the [template resources](https://github.com/kelseyhightower/confd#template-resources) found under `/etc/confd/conf.d`.

### Poll the etcd cluster in 30 second intervals

The "/production" string will be prefixed to keys when querying etcd at http://127.0.0.1:4001.

```
confd -i 30 -p '/production' -n 'http://127.0.0.1:4001'
```

### Single run without polling

Using default settings run one time and exit.

{'fraction_non_alphanumeric': 0.1287339971550498, 'fraction_numerical': 0.01813655761024182, 'mean_word_length': 4.788065843621399, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '545664', 'n_tokens_mistral': 942, 'n_tokens_neox': 878, 'n_words': 263}