[FEATURE REQUEST] State module to manage SysFS entries #60154
Labels
Feature
new functionality including changes to functionality and code refactors, etc.
Milestone
Is your feature request related to a problem? Please describe.
There are some Linux kernel configuration that are managed through SysFS objects, it's not uncommon to need change those configurations, like disable transparent hugepages, or change disks I/O scheduler, or to offline some CPUs.
Saltstack provides the
sysfs
execution module, but not a state module so I could set and keep the configurations in the desired state.Describe the solution you'd like
I would like a state module so I can specify something like:
And Salt will check the
cpu1
state, do nothing if it was already disabled and disable it if enabled.Describe alternatives you've considered
I considered read the SysFS file contents , and use its results to trigger another state that runs
sysfs.write
or directly echoing the value to the file usingcmd.run
.Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.
The text was updated successfully, but these errors were encountered: