memcached-formula/memcached/config.sls

24 lines
677 B
Plaintext
Raw Normal View History

2014-11-17 20:10:20 +01:00
{% from 'memcached/map.jinja' import memcached with context %}
include:
- memcached
2014-11-17 20:10:20 +01:00
{{ memcached.config_file }}:
file:
- managed
- template: jinja
- user: root
- group: root
- mode: 644
2014-11-17 20:10:20 +01:00
{% if grains['os_family'] == 'Debian' %}
- source: salt://memcached/templates/memcached.conf
2014-11-17 20:10:20 +01:00
{% elif grains['os_family'] == 'RedHat' %}
- source: salt://memcached/templates/sysconfig/memcached
2014-12-03 09:31:50 +01:00
{% elif grains['os_family'] == 'Gentoo' %}
- source: salt://memcached/templates/conf.d/memcached
2015-09-10 21:19:08 +02:00
{% elif grains['os_family'] == 'Arch' %}
- source: salt://memcached/templates/empty
2014-11-17 20:10:20 +01:00
{% endif %}
- watch_in:
- service: memcached