memcached-formula/memcached/config.sls
2014-11-17 13:10:20 -06:00

20 lines
480 B
Plaintext

{% from 'memcached/map.jinja' import memcached with context %}
include:
- memcached
{{ memcached.config_file }}:
file:
- managed
- template: jinja
- user: root
- group: root
- mode: 644
{% if grains['os_family'] == 'Debian' %}
- source: salt://memcached/templates/memcached.conf
{% elif grains['os_family'] == 'RedHat' %}
- source: salt://memcached/templates/sysconfig/memcached
{% endif %}
- watch_in:
- service: memcached