cookbook 'sysfs', '~> 0.0.2'
sysfs (1) Versions 0.0.2 Follow2
Configures sysfs parameters
cookbook 'sysfs', '~> 0.0.2', :supermarket
knife supermarket install sysfs
knife supermarket download sysfs
Description
Set sysfs values from Chef!
Attributes
Usage
With Ressource/Provider.
Resource/Provider
sysfs
Actions
- :save - Save and set a sysfs value (default).
- :set - Set a sysfs value.
- :remove - Remove a (previous set) sysfs.
Attribute Parameters
-
variable - Variable to manage. e.g.
devices/system/cpu/cpu0/cpufreq/scaling_governor
,block/sda/queue/scheduler
. -
value - Value to affect to variable. e.g.
1
,0
,noop
.
Examples
sysfs 'block/sda/queue/scheduler' do value 'noop' end # the same. sysfs 'set io scheduler to cfq' do variable 'block/sda/queue/scheduler' value 'cfq' end sysfs 'block/sda/queue/scheduler' do action :remove end # Set set scaling governator but don't save it. sysfs 'devices/system/cpu/cpu0/cpufreq/scaling_governor' do action :set value 'powersave' end
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Collaborator Number Metric
0.0.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.0.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.0.2 failed this metric
FC064: Ensure issues_url is set in metadata: sysfs/metadata.rb:1
FC065: Ensure source_url is set in metadata: sysfs/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sysfs/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sysfs/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: sysfs/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:33
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:41
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:53
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.2 passed this metric
Testing File Metric
0.0.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.0.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 include a tag that matches this cookbook version number
0.0.2 failed this metric
0.0.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.0.2 failed this metric
FC064: Ensure issues_url is set in metadata: sysfs/metadata.rb:1
FC065: Ensure source_url is set in metadata: sysfs/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sysfs/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sysfs/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: sysfs/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:33
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:41
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:53
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.2 passed this metric
Testing File Metric
0.0.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.0.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 include a tag that matches this cookbook version number
0.0.2 failed this metric
FC065: Ensure source_url is set in metadata: sysfs/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sysfs/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sysfs/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: sysfs/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:33
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:41
FC085: Resource using new_resource.updated_by_last_action to converge resource: sysfs/providers/default.rb:53
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.2 passed this metric
Testing File Metric
0.0.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.0.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 include a tag that matches this cookbook version number
0.0.2 failed this metric
0.0.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 include a tag that matches this cookbook version number