python daemon that munches on logs and sends their contents to logstash
pythonvirtualenvgit
pythonrunitbuild-essentialgit
This cookbook provides two resources and corresponding providers.
Actions:
install- installs beaveruninstall- uninstalls beaver
Actions:
create- creates a beaver processdestroy- stops the beaver process
| Key | Type | Description | Default |
|---|---|---|---|
| install_uri | String | If installing via the git protocol the fully qualified uri to resolve the package for beaver | git+git://github.com/josegonzalez/beaver.git#egg=beaver |
| install_version | String | If installing via PyPi package name and version to install | beaver==28 |
| beaver_root | String | Directory that we create a virtualenv instance in to install beaver in to | /opt/beaver |
| Key | Type | Description | Default |
|---|---|---|---|
| redis_url | String | Fully qualified uri of the redis server configured for logstash e.g. redis://172.29.11.1:6379/0 | String.new |
Provides an example of how to use this with a redis server to send your messages to
Just include chef-beaver in your node's run_list:
{
"name":"my_node",
"run_list": [
"recipe[chef-beaver::example]"
]
}- Fork the repository on Github
- Create a named feature branch (like
add_component_x) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Scott M. Likens scott@spam.likens.us
Copyright 2013, Scott M. Likens
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.