cookbook 'pci', '= 0.3.2'
pci (8) Versions 0.3.2 Follow2
Expose PCI information as automatic attributes
cookbook 'pci', '= 0.3.2', :supermarket
knife supermarket install pci
knife supermarket download pci
Cookbook pci
Expose PCI information via automatic attributes even during compilation time of the first Chef run.
Due to the fact the Ohai plugins system requires a setup phase, this cookbooks does not use it.
Requirements
This cookbook supports and requires Chef 12.7+.
Platforms
- CentOS 6 & 7
- RedHat 6 & 7
- Windows Server 2012R2 & 2016
Usage
This cookbooks exposes PCI information as automatic attributes, so you just need to load it.
To get access to the PCI attributes:
* from another cookbook -> add a dependency to pci
in your cookbook's metadata.
* without cookbooks -> add the pci::default
recipe to your node run-list.
You can disable these attributes, i.e. tell chef to not fetch this attributes.
Just set the Chef setting pci_devices_disabled
to true
in your client config.
Attributes
Below attributes are available in pci
root namespace.
Attribute | Description |
---|---|
devices |
A Hash of all available PCI devices on the node. |
pnp_mapping |
A mapping between PNPIDs an PCI slots on Windows. |
Recipes
This cookbook own a single pci::default
recipe which does nothing.
pci::default
This recipe does nothing, its only purpose is to load pci
attributes by adding the cookbook via the run-list.
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
- Authors Baptiste Courtois (b.courtois@criteo.com)
Copyright 2017 Baptiste Courtois 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.
Changelog of the pci cookbook
This file is used to list changes made in each version of the pci cookbook.
Version 0.3.2
- ::PCI.devices return an empty Mash on non-supported platforms
Version 0.3.1
- Correct method to retrieve PNP DeviceID on windows
Version 0.3.0
- Fix inverted sdevice_id & svendor_id on Windows
- Add Chef setting to control wether to load pci attributes or not
- Improve library testing
- Add Appveyor CI
Version 0.2.0
- Read Linux PCI data from PCI Configuration space
Version 0.1.0
- Expose PCI attributes on Linux
- Expose PCI attributes on Windows
Version 0.0.0
- Initial commit
Collaborator Number Metric
0.3.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.3.2 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
0.3.2 passed this metric
License Metric
0.3.2 passed this metric
No Binaries Metric
0.3.2 passed this metric
Testing File Metric
0.3.2 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.3.2 passed this metric
0.3.2 failed this metric
0.3.2 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
0.3.2 passed this metric
License Metric
0.3.2 passed this metric
No Binaries Metric
0.3.2 passed this metric
Testing File Metric
0.3.2 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.3.2 passed this metric
0.3.2 passed this metric
0.3.2 passed this metric
No Binaries Metric
0.3.2 passed this metric
Testing File Metric
0.3.2 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.3.2 passed this metric
0.3.2 passed this metric
0.3.2 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.3.2 passed this metric
0.3.2 passed this metric