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

logdna (1) Versions 0.1.0

Installs/Configures LogDNA Agent

Berkshelf
Policyfile
Knife
cookbook 'logdna', '~> 0.1.0'
cookbook 'logdna', '~> 0.1.0', :supermarket
knife supermarket install logdna
knife supermarket download logdna
README
Dependencies
Quality 50%

Deploy LogDNA Agent with Chef

Description

Chef Cookbook to install and configure LogDNA Agent

Requirements

Chef 12.1+

Platforms Tested

  • CentOS 6
  • CentOS 7
  • Ubuntu 12.04 - Precise
  • Ubuntu 14.04 - Trusty
  • Ubuntu 16.04 - Xenial
  • Ubuntu 17.10 - Artful

Attributes

Attributes have default values set in attributes/default.rb.

Task-specific Attributes

  • node['logdna']['agent_install']: Whether to install or not. Default is true
  • node['logdna']['agent_configure']: Whether to configure or not. Default is true
  • node['logdna']['agent_service']: How to manage LogDNA Agent Service. Default is :start. The possible values are:
    • :start: in order to start
    • :stop: in order to stop
    • :restart: in order to restart

Configuration Attributes

  • node['logdna']['conf_key']: LogDNA API Key - LogDNA Agent won't start unless node['logdna']['conf_key'] is set
  • node['logdna']['conf_config']: File Path for the LogDNA Agent configuration (defaults to /etc/logdna.conf)
  • node['logdna']['conf_logdir']: Log Directories to be added
  • node['logdna']['conf_logfile']: Log Files to be added
  • node['logdna']['conf_exclude']: Log Files or Directories to be excluded
  • node['logdna']['conf_exclude_regex']: Exclusion Rule for Log Lines
  • node['logdna']['conf_hostname']: Alternative host name to be used
  • node['logdna']['conf_tags']: Tags to be added

Recipes

There are different recipes for doing each process for each kind of system; you can find all in recipes/ folder.

default

The default recipe is the main recipe calling all others depending on attributes and platform. There are the following cases: * if node['logdna']['agent_install'] is true, it will call install_debian or install_redhat depending on node's platform * if node['logdna']['agent_configure'] is set to true, it will call configure recipe * if node['logdna']['conf_key'] is set or node['logdna']['agent_service'] is set to :stop, it will call service_debian or service_redhat depending on node's platform

install_debian

The recipe to install LogDNA Agent onto deb or apt based systems.

install_redhat

The recipe to install LogDNA Agent onto rpm or yum based systems.

configure

The recipe to configure LogDNA Agent using node['logdna']['conf_*'] attributes.

service_debian

The recipe to enable and manage LogDNA Agent Service on deb or apt based systems.

service_redhat

The recipe to enable and manage LogDNA Agent Service on rpm or yum based systems.

Contributing

Contributions are always welcome. See the contributing guide to learn how you can help.

License and Authors

Dependent cookbooks

apt >= 0.0.0
yum >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.0 passed this metric

Foodcritic Metric
            

0.1.0 failed this metric

FC007: Ensure recipe dependencies are reflected in cookbook metadata: logdna/recipes/default.rb:12
FC007: Ensure recipe dependencies are reflected in cookbook metadata: logdna/recipes/default.rb:14
FC007: Ensure recipe dependencies are reflected in cookbook metadata: logdna/recipes/default.rb:27
FC007: Ensure recipe dependencies are reflected in cookbook metadata: logdna/recipes/default.rb:39
FC007: Ensure recipe dependencies are reflected in cookbook metadata: logdna/recipes/default.rb:41
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.0 passed this metric

Publish Metric
            

0.1.0 passed this metric

Supported Platforms Metric
            

0.1.0 passed this metric

Testing File Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number