From 802db248409b3898de0f80b1d1e98914acc51b5b Mon Sep 17 00:00:00 2001
From: Andrew Lau <andrew.lau@newiteration.com>
Date: Sat, 10 Sep 2016 10:24:45 +1000
Subject: Add atomic-guest tuned profile

---
 roles/openshift_node/tasks/main.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index f49e97745..995169dd6 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -34,6 +34,10 @@
   action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }},tuned-profiles-{{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }} state=present"
   when: not openshift.common.is_containerized | bool
 
+- name: Set atomic-guest tuned profile
+  command: "tuned-adm profile atomic-guest"
+  when: openshift.common.is_atomic | bool
+
 - name: Install sdn-ovs package
   action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}-sdn-ovs{{ openshift_pkg_version | oo_image_tag_to_rpm_version(include_dash=True) }} state=present"
   when: openshift.common.use_openshift_sdn and not openshift.common.is_containerized | bool
-- 
cgit v1.2.3