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:
parent
4e568d78be
commit
ac8f494b25
13
memcached/config.sls
Normal file
13
memcached/config.sls
Normal 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
|
@ -6,16 +6,3 @@ memcached:
|
|||||||
- enable: True
|
- enable: True
|
||||||
- require:
|
- require:
|
||||||
- pkg: memcached
|
- 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
|
|
Loading…
Reference in New Issue
Block a user