Browse Source

Merge pull request #129 from FHE3/linux-system-elevator

Add elevator parameter to GRUB_CMDLINE_LINUX_DEFAULT
pull/132/head
Filip Pytloun 7 years ago
parent
commit
318dfee6ad
No account linked to committer's email address
2 changed files with 18 additions and 0 deletions
  1. +17
    -0
      linux/system/kernel.sls
  2. +1
    -0
      tests/pillar/system.sls

+ 17
- 0
linux/system/kernel.sls View File

@@ -20,6 +20,23 @@ include:
{%- endif %}
{%- endif %}

{%- if system.kernel.elevator is defined %}

include:
- linux.system.grub

/etc/default/grub.d/91-elevator.cfg:
file.managed:
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT elevator={{ system.kernel.elevator }}"'
- require:
- file: grub_d_directory
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
- watch_in:
- cmd: grub_update

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

{%- if system.kernel.version is defined %}

linux_kernel_package:

+ 1
- 0
tests/pillar/system.sls View File

@@ -18,6 +18,7 @@ linux:
default: "linux.ci.local$"
kernel:
isolcpu: 1,2,3,4
elevator: deadline
sysfs:
scheduler:
block/sda/queue/scheduler: deadline

Loading…
Cancel
Save