Browse Source

Merge pull request #2433 from andrewklau/tuned-atomic-guest

Add atomic-guest tuned profile
Scott Dodson 8 years ago
parent
commit
596f6e7056
1 changed files with 4 additions and 0 deletions
  1. 4 0
      roles/openshift_node/tasks/main.yml

+ 4 - 0
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