-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use tuned files instead of using it as a module
The previous version of the kernel_settings role used `tuned` as a python library, and had a `kernel_settings` module which was a wrapper around this code. However, `tuned` version 2.23 has changed its internal API and it is no longer possible to use it as a python library. Instead, the kernel_settings role has been refactored to read/write `tuned` config files, and let the `tuned` daemon manage the settings. In addition, `tuned` 2.23 changed the location of the profile directory, so the kernel_settings role will now determine the location of the profile directory depending on the `tuned` version. The old `kernel_settings` module is removed, along with all of the python unit testing code. A new `kernel_settings_get_config` module has been created which will simply parse and return the given config file as a `dict`. Signed-off-by: Rich Megginson <[email protected]>
- Loading branch information
Showing
38 changed files
with
739 additions
and
2,217 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
plugins/modules/kernel_settings.py validate-modules:missing-gplv3-license | ||
plugins/modules/kernel_settings_get_config.py validate-modules:missing-gplv3-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
# ansible and dependencies for all supported platforms | ||
ansible ; python_version > "2.6" | ||
idna<2.8 ; python_version < "2.7" | ||
PyYAML<5.1 ; python_version < "2.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.