Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

chef-rsyslog (2) Versions 0.1.1

Installs and configure RSYSLOG.

Berkshelf
Policyfile
Knife
cookbook 'chef-rsyslog', '~> 0.1.1'
cookbook 'chef-rsyslog', '~> 0.1.1', :supermarket
knife supermarket install chef-rsyslog
knife supermarket download chef-rsyslog
README
Dependencies
Changelog
Quality 88%

RSYSLOG

Cookbook Support

Installs and configure RSYSLOG.

Config

  • node['chef-rsyslog']['configure']: Arguments given to configure command before compile
  • node['chef-rsyslog']['files']: Files you want to watch
  • node['chef-rsyslog']['modules']: Built-in modules: datadog

  • node['chef-rsyslog']['dir_create_mode']: doc

  • node['chef-rsyslog']['file_create_mode']: doc

  • node['chef-rsyslog']['file_group']: doc

  • node['chef-rsyslog']['file_owner']: doc

  • node['chef-rsyslog']['polling_interval']: Time in second to execute the polling on file

  • node['chef-rsyslog']['priv_drop_to_group']: doc

  • node['chef-rsyslog']['priv_drop_to_user']: doc

  • node['chef-rsyslog']['umask']: doc

  • node['chef-rsyslog']['source']['checksum']: Checksum of the downloaded tarball

  • node['chef-rsyslog']['source']['extension']: The extension of the downloaded tarball

  • node['chef-rsyslog']['source']['uri']: The URI, with no file name of the downloaded tarball

  • node['chef-rsyslog']['source']['version']: The version number of the downloaded tarball

  • node['chef-rsyslog']['source']['folder_name']: The folder name of the downloaded tarball

  • node['chef-rsyslog']['source']['file_name']: The file name of the downloaded tarball

  • node['chef-rsyslog']['source']['file_path']: The file path where tarball will be saved

  • node['chef-rsyslog']['source']['folder_path']: The folder path where tarball will be extracted

  • node['chef-rsyslog']['source']['url']: The URL for download of the tarball

  • node['chef-rsyslog']['libfastjson']['source']['checksum']: Checksum of the downloaded tarball

  • node['chef-rsyslog']['libfastjson']['source']['extension']: The extension of the downloaded tarball

  • node['chef-rsyslog']['libfastjson']['source']['uri']: The URI, with no file name of the downloaded tarball

  • node['chef-rsyslog']['libfastjson']['source']['version']: The version number of the downloaded tarball

  • node['chef-rsyslog']['libfastjson']['source']['folder_name']: The folder name of the downloaded tarball

  • node['chef-rsyslog']['libfastjson']['source']['file_name']: The file name of the downloaded tarball

  • node['chef-rsyslog']['libfastjson']['source']['file_path']: The file path where tarball will be saved

  • node['chef-rsyslog']['libfastjson']['source']['folder_path']: The folder path where tarball will be extracted

  • node['chef-rsyslog']['libfastjson']['source']['url']: The URL for download of the tarball

  • node['chef-rsyslog']['source']['dependencies']: Libs needed to precompile and configurates the RSYSLOG

Usage

Berkshelf

source 'https://supermarket.chef.io'

cookbook 'chef-rsyslog'

Node

The following nodes is an example of the minimal needed to run correctly this cookbook:

{
  "run_list": [
    "recipe[chef-rsyslog]"
  ]
}
Files

By default, the path of the files will be used as Tag on imfile replacing / by _.

"chef-rsyslog": {
  "files": [
    "/var/log/nginx/access.log",
  }
}

The path /var/log/nginx/access.log wil be a Tag like _var_log_nginx_access.log. If you want a custom tag, just pass the name separated by a space after the file name.

"chef-rsyslog": {
  "files": [
    "/var/log/nginx/access.log nginx_access",
  }
}

Now Tag will be nginx_access.

Modules

Modules are configurations pre written for you, just pass your credentials.

Datadog

Just add the the Datadog API Key and it will work out of box:

"modules": {
  "datadog": {
    "api_key": "my_api_key"
  }
}

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

v0.1.0

Bugfix

  • The module imfile was not loaded since a miss typo.
  • The octal numbers were written as string to avoid wrong converstion;

v0.1.0

  • First release.

Collaborator Number Metric
            

0.1.1 passed this metric

Contributing File Metric
            

0.1.1 passed this metric

Foodcritic Metric
            

0.1.1 failed this metric

FC033: Missing template file: chef-rsyslog/recipes/config.rb:3
FC033: Missing template file: chef-rsyslog/recipes/datadog.rb:3
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.1 passed this metric

Publish Metric
            

0.1.1 passed this metric

Supported Platforms Metric
            

0.1.1 passed this metric

Testing File Metric
            

0.1.1 passed this metric

Version Tag Metric
            

0.1.1 passed this metric