Removed the config from the init and put it into it's own state. This helps avoid issues where we might need more than one memcached config.

This commit is contained in:
Forrest Alvarez 2014-05-14 15:30:37 -07:00
parent 4e568d78be
commit ac8f494b25
2 changed files with 13 additions and 13 deletions

13
memcached/config.sls Normal file
View File

@ -0,0 +1,13 @@
include:
- memcached
/etc/memcached.conf:
file:
- managed
- template: jinja
- user: root
- group: root
- mode: 644
- source: salt://memcached/templates/memcached.conf
- watch_in:
- service: memcached

View File

@ -6,16 +6,3 @@ memcached:
- enable: True
- require:
- pkg: memcached
- watch:
- file: /etc/memcached.conf
/etc/memcached.conf:
file:
- managed
- template: jinja
- user: root
- group: root
- mode: 644
- source: salt://memcached/templates/memcached.conf
- require:
- pkg: memcached