Change-Id: I6ba3d72307805341829fe0f6919e326f3698e833tags/2017.4
@@ -179,6 +179,18 @@ Install always up to date LTS kernel and headers from Ubuntu trusty: | |||
lts: trusty | |||
headers: true | |||
Load kernel modules and add them to `/etc/modules`: | |||
.. code-block:: yaml | |||
linux: | |||
system: | |||
kernel: | |||
modules: | |||
- nf_conntrack | |||
- tp_smapi | |||
- 8021q | |||
Install specific kernel version and ensure all other kernel packages are | |||
not present. Also install extra modules and headers for this kernel: | |||
@@ -26,6 +26,16 @@ linux_kernel_old_absent: | |||
{%- endif %} | |||
{%- for module in system.kernel.get('modules', []) %} | |||
linux_kernel_module_{{ module }}: | |||
kmod.present: | |||
- name: {{ module }} | |||
- persist: true | |||
{%- endfor %} | |||
{%- for sysctl_name, sysctl_value in system.kernel.get('sysctl', {}).iteritems() %} | |||
linux_kernel_{{ sysctl_name }}: |