Make the formula fully pillar driven/customizable

- split package and param into separate state files
- use defaults.yml to specify all configurable options of the formula
- setup map.jinja to read in defaults.yml, filter by os_family for
  Arch, and merge in sysctl:lookup pillar
- Updated README
This commit is contained in:
puneet kandhari
2015-04-06 09:25:27 -05:00
parent b0c1b6ac56
commit 38eb852bce
7 changed files with 89 additions and 43 deletions
+17
View File
@@ -0,0 +1,17 @@
# -*- 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 }}
- value: {{ param.version }}
{% if param.config is defined %}
- config: {{ sysctl_settings.config.location }}/{{ param.config }}
{% endif %}
{% endif %}
{% endfor %}