Pārlūkot izejas kodu

Don't set governor on VMs

Change-Id: Ifa26361845a6841eff1ab49e6d6542946898c426
pull/102/head
Filip Pytloun pirms 7 gadiem
vecāks
revīzija
caec9b5131
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      linux/system/cpu.sls

+ 5
- 0
linux/system/cpu.sls Parādīt failu

@@ -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 %}

Notiek ielāde…
Atcelt
Saglabāt