2014-11-17 20:10:20 +01:00
|
|
|
{% from 'memcached/map.jinja' import memcached with context %}
|
|
|
|
|
2014-05-15 00:30:37 +02:00
|
|
|
include:
|
|
|
|
- memcached
|
|
|
|
|
2014-11-17 20:10:20 +01:00
|
|
|
{{ memcached.config_file }}:
|
2014-05-15 00:30:37 +02:00
|
|
|
file:
|
|
|
|
- managed
|
|
|
|
- template: jinja
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 644
|
2014-11-17 20:10:20 +01:00
|
|
|
{% if grains['os_family'] == 'Debian' %}
|
2014-05-15 00:30:37 +02:00
|
|
|
- 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
|
|
|
|
{% endif %}
|
2014-05-15 00:30:37 +02:00
|
|
|
- watch_in:
|
|
|
|
- service: memcached
|