2015-04-06 16:25:27 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=sls
|
|
|
|
|
|
|
|
{## import settings from map.jinja ##}
|
|
|
|
{% from "sysctl/map.jinja" import sysctl_settings with context %}
|
|
|
|
|
|
|
|
{% for param in sysctl_settings.get('params', {}) %}
|
|
|
|
{% if param is mapping %}
|
|
|
|
sysctl-present-{{ param.name }}:
|
|
|
|
sysctl.present:
|
|
|
|
- name: {{ param.name }}
|
2015-05-12 15:48:22 +02:00
|
|
|
- value: {{ param.value }}
|
2015-04-06 16:25:27 +02:00
|
|
|
{% if param.config is defined %}
|
|
|
|
- config: {{ sysctl_settings.config.location }}/{{ param.config }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|