Browse Source

Don't set governor on VMs

Change-Id: Ifa26361845a6841eff1ab49e6d6542946898c426
pull/102/head
Filip Pytloun 7 years ago
parent
commit
caec9b5131
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      linux/system/cpu.sls

+ 5
- 0
linux/system/cpu.sls View File

@@ -17,6 +17,9 @@ ondemand_service_disable:
- name: ondemand
- enable: false

{%- if grains.get('virtual', None) in ['physical', None] %}
{#- Governor cannot be set in VMs, etc. #}

/etc/sysfs.d/governor.conf:
file.managed:
- source: salt://linux/files/governor.conf.jinja
@@ -38,3 +41,5 @@ governor_write_sysfs_cpu_core_{{ cpu_core }}:
{%- endfor %}

{%- endif %}

{%- endif %}

Loading…
Cancel
Save