summaryrefslogtreecommitdiffstats
path: root/roles/tuned
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-01-18 17:43:26 -0800
committerGitHub <noreply@github.com>2018-01-18 17:43:26 -0800
commit5f8cd00df722f635b8fabde4cd4ff40740f1b5d5 (patch)
tree79f1fde2ad77e5089fd0b9ab52cb3b4a0ff35634 /roles/tuned
parent0e4f7c6dd426a9b6c324f854b53d28c8c8c637d0 (diff)
parentfa25a734d63d11b5cde6f7706512e93de4684bc8 (diff)
downloadopenshift-5f8cd00df722f635b8fabde4cd4ff40740f1b5d5.tar.gz
openshift-5f8cd00df722f635b8fabde4cd4ff40740f1b5d5.tar.bz2
openshift-5f8cd00df722f635b8fabde4cd4ff40740f1b5d5.tar.xz
openshift-5f8cd00df722f635b8fabde4cd4ff40740f1b5d5.zip
Merge pull request #6709 from jmencak/tuned-29
Automatic merge from submit-queue. Automatic profile setting for tuned 2.9 Tuned 2.9 introduces automatic and manual profile selection. If there is 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')
-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: