Browse Source

fixes in sysctl kernel parameters

tags/2016.12
Jakub Pavlik 9 years ago
parent
commit
32ef59fecc
1 changed files with 2 additions and 16 deletions
  1. +2
    -16
      linux/system/kernel.sls

+ 2
- 16
linux/system/kernel.sls View File

@@ -24,25 +24,11 @@ linux_kernel_old_absent:
- watch:
- pkg: linux_kernel_package

{%- else %}

linux_kernel_package:
pkg.latest:
- names:
- linux-image-{{ system.kernel.type|default('generic') }}{% if system.kernel.get('lts', False) %}-lts-{{ system.kernel.lts }}{% endif %}
{%- if system.kernel.get('headers', False) %}
- linux-headers-{{ system.kernel.type|default('generic') }}{% if system.kernel.get('lts', False) %}-lts-{{ system.kernel.lts }}{% endif %}
{%- endif %}
{%- if system.kernel.get('extra', False) %}
- linux-image-extra-{{ system.kernel.type|default('generic') }}{% if system.kernel.get('lts', False) %}-lts-{{ system.kernel.lts }}{% endif %}
{%- endif %}
- refresh: true

{%- endif %}

{%- for sysclt_name, sysctl_value in sytem.kernel.get('sysctl', {}).iteritems() %}
{%- for sysclt_name, sysctl_value in system.kernel.get('sysctl', {}).iteritems() %}

linux_kernel_{{ sysclt_name }}
linux_kernel_{{ sysclt_name }}:
sysctl.present:
- name: {{ sysclt_name }}
- value: {{ sysctl_value }}

Loading…
Cancel
Save