summaryrefslogtreecommitdiffstats
path: root/roles/tuned/tasks
diff options
context:
space:
mode:
authorJiri Mencak <jmencak@redhat.com>2018-01-11 22:43:51 +0100
committerJiri Mencak <jmencak@redhat.com>2018-01-12 12:32:01 +0100
commitfa25a734d63d11b5cde6f7706512e93de4684bc8 (patch)
treef4309091aabd4bcced95a67fc81f17614e06001c /roles/tuned/tasks
parent19d1642c26d99f9059b70222a157532f539dcaa8 (diff)
downloadopenshift-fa25a734d63d11b5cde6f7706512e93de4684bc8.tar.gz
openshift-fa25a734d63d11b5cde6f7706512e93de4684bc8.tar.bz2
openshift-fa25a734d63d11b5cde6f7706512e93de4684bc8.tar.xz
openshift-fa25a734d63d11b5cde6f7706512e93de4684bc8.zip
Automatic profile setting for tuned 2.9
Tuned 2.9 introduces automatic and manual profile selection. If there is a file /etc/tuned/profile_mode containing "manual" on a system with tuned 2.9, without this PR the appropriate OCP profiles will not be set. This PR removes the file prior to tuned restart, in addition to /etc/tuned/active_profile to make the tuned profile selection automatic.
Diffstat (limited to 'roles/tuned/tasks')
-rw-r--r--roles/tuned/tasks/main.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/tuned/tasks/main.yml b/roles/tuned/tasks/main.yml
index 4a28d47b2..5129f4471 100644
--- a/roles/tuned/tasks/main.yml
+++ b/roles/tuned/tasks/main.yml
@@ -28,7 +28,12 @@
when: item.state == 'file'
- name: Make tuned use the recommended tuned profile on restart
- file: path=/etc/tuned/active_profile state=absent
+ file:
+ path: '{{ item }}'
+ state: absent
+ with_items:
+ - /etc/tuned/active_profile
+ - /etc/tuned/profile_mode
- name: Restart tuned service
systemd: