diff --git a/memcached/config.sls b/memcached/config.sls new file mode 100644 index 0000000..f495c70 --- /dev/null +++ b/memcached/config.sls @@ -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 diff --git a/memcached/init.sls b/memcached/init.sls index cbefb44..ad4af5b 100644 --- a/memcached/init.sls +++ b/memcached/init.sls @@ -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 \ No newline at end of file