cookbook 'sensors', '= 1.1.4'
sensors
(26) Versions
1.1.4
-
Follow4
Installs/Configures sensor polling using lm-sensors or openipmi on Linux systems
cookbook 'sensors', '= 1.1.4', :supermarket
knife supermarket install sensors
knife supermarket download sensors
Sensors Cookbook
Cookbook to manage hardware sensors via openipmi or lm-sensors on Linux systems. Installs only on hardware systems. Defines sensors to poll via data bag items and installs either lm-sensors or openipmi to poll sensors depending on data bag attributes.
Requirements
Chef
Chef 11+
Platform
- Debian
- Ubuntu
- Centos
- Redhat
- Oracle
- Scientific
Cookbooks:
None
Attributes
default['sensors']['service_name']
- automatically set based on platform. Debian derivatives: lm-sensors & RHEL derivatives: lm_sensors
Data Bags
This cookbook uses a required data bag item per mainboard to configure which sensors should be ignored. This allows you to ignore fans or temperature sensors present in the chipset, but not actually used by the system manufacturer. The cookbook will attempt to load a databag item with the ID of the mainboard in the sensors
data bag. The ID can be found using Ohai at node['dmi']['base_board']['product_name']
. Example data bags are included in the example_databags directory.
Example data bag for a non-IPMI systems, which will use lm-sensors
{
"id": "x7dvl",
"description": "SuperMicro X7DVL",
"type": "lmsensors"
"chips": [
{
"id": "w83627hf-isa-0290",
"ignores": [
"in0",
"in1",
"in2",
"in3",
"in4",
"in5",
"in6",
"in7",
"in8",
"fan1",
"fan2",
"fan3",
"cpu0_vid",
"beep_enable"
]
},
{
"id": "w83792d-i2c-*-2f",
"ignores": [
"in0",
"in1",
"in2",
"in3",
"in4",
"in5",
"in6",
"in7",
"in8",
"in9",
"fan5",
"fan6",
"fan7",
"fan8",
"fan9",
"fan10",
"beep_enable",
"intrusion0"
]
}
]
}
Example data bag for an IPMI systems, which will use OpenIPMI
{
"id": "x8dtt-h",
"description": "SuperMicro X8DTT-H",
"type": "ipmi",
"sensors": [
"fan3",
"fan4"]
}
License and Author
Author:: Tim Smith (tsmith84@gmail.com)
Copyright:: 2013-2014, Limelight Networks, Inc. Copyright:: 2015, Cozy Services, Ltd. 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.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
sensors Cookbook CHANGELOG
This file is used to list changes made in each version of the sensors cookbook.
v1.1.4
- Add changelog
- Use stanard chef .gitignore file
- Remove most of the rule disables in the rubocop file
- Use travis container environment and test on Ruby 2.2
- Update the supermarket URL in the berksfile
- Update and breakout the deps in the Gemfile
- Add a license file
- Add a cookbook version badge
- Set the minimum supported Chef version to 11 in the readme
- Add more files to the chefignore file
- Add fedora to the metadata as a supported platform
- Add issues_url and source_url to the metadata file
- Update specs to Chefspec 4 format
Collaborator Number Metric
1.1.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.4 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 CONTRIBUTING.md file
Foodcritic Metric
1.1.4 failed this metric
FC066: Ensure chef_version is set in metadata: sensors/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sensors/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
1.1.4 passed this metric
No Binaries Metric
1.1.4 passed this metric
Testing File Metric
1.1.4 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
1.1.4 passed this metric
1.1.4 failed this metric
1.1.4 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 CONTRIBUTING.md file
Foodcritic Metric
1.1.4 failed this metric
FC066: Ensure chef_version is set in metadata: sensors/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sensors/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
1.1.4 passed this metric
No Binaries Metric
1.1.4 passed this metric
Testing File Metric
1.1.4 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
1.1.4 passed this metric
1.1.4 failed this metric
FC069: Ensure standardized license defined in metadata: sensors/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.1.4 passed this metric
No Binaries Metric
1.1.4 passed this metric
Testing File Metric
1.1.4 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
1.1.4 passed this metric
1.1.4 passed this metric
1.1.4 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
1.1.4 passed this metric
1.1.4 passed this metric