Browse Source

Don't set governor on VMs

Change-Id: Ifa26361845a6841eff1ab49e6d6542946898c426
users_deps
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

- name: ondemand - name: ondemand
- enable: false - enable: false


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

/etc/sysfs.d/governor.conf: /etc/sysfs.d/governor.conf:
file.managed: file.managed:
- source: salt://linux/files/governor.conf.jinja - source: salt://linux/files/governor.conf.jinja
{%- endfor %} {%- endfor %}


{%- endif %} {%- endif %}

{%- endif %}

Loading…
Cancel
Save