cookbook 'chef-rsyslog', '~> 0.1.1', :supermarket
chef-rsyslog (2) Versions 0.1.1 Follow1
Installs and configure RSYSLOG.
cookbook 'chef-rsyslog', '~> 0.1.1'
knife supermarket install chef-rsyslog
knife supermarket download chef-rsyslog
RSYSLOG
Installs and configure RSYSLOG.
Config
-
node['chef-rsyslog']['configure']
: Arguments given toconfigure
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']
: docnode['chef-rsyslog']['file_create_mode']
: docnode['chef-rsyslog']['file_group']
: docnode['chef-rsyslog']['file_owner']
: docnode['chef-rsyslog']['polling_interval']
: Time in second to execute the polling on filenode['chef-rsyslog']['priv_drop_to_group']
: docnode['chef-rsyslog']['priv_drop_to_user']
: docnode['chef-rsyslog']['umask']
: docnode['chef-rsyslog']['source']['checksum']
: Checksum of the downloaded tarballnode['chef-rsyslog']['source']['extension']
: The extension of the downloaded tarballnode['chef-rsyslog']['source']['uri']
: The URI, with no file name of the downloaded tarballnode['chef-rsyslog']['source']['version']
: The version number of the downloaded tarballnode['chef-rsyslog']['source']['folder_name']
: The folder name of the downloaded tarballnode['chef-rsyslog']['source']['file_name']
: The file name of the downloaded tarballnode['chef-rsyslog']['source']['file_path']
: The file path where tarball will be savednode['chef-rsyslog']['source']['folder_path']
: The folder path where tarball will be extractednode['chef-rsyslog']['source']['url']
: The URL for download of the tarballnode['chef-rsyslog']['libfastjson']['source']['checksum']
: Checksum of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['extension']
: The extension of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['uri']
: The URI, with no file name of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['version']
: The version number of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['folder_name']
: The folder name of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['file_name']
: The file name of the downloaded tarballnode['chef-rsyslog']['libfastjson']['source']['file_path']
: The file path where tarball will be savednode['chef-rsyslog']['libfastjson']['source']['folder_path']
: The folder path where tarball will be extractednode['chef-rsyslog']['libfastjson']['source']['url']
: The URL for download of the tarballnode['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.3.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
0.1.1 passed this 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.3.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
0.1.1 failed this metric
FC033: Missing template file: chef-rsyslog/recipes/datadog.rb:3
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
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
0.1.1 passed this 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
0.1.1 passed this metric
0.1.1 passed this metric