Merge branch 'master' of https://github.com/saltstack-formulas/memcached-formula
This commit is contained in:
commit
f441a28568
@ -1,7 +1,14 @@
|
|||||||
{% from 'memcached/map.jinja' import memcached with context %}
|
{% from 'memcached/map.jinja' import memcached with context %}
|
||||||
|
{% from 'memcached/macros.sls' import get_config_item with context -%}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- memcached
|
- memcached
|
||||||
|
|
||||||
|
memcached_user:
|
||||||
|
user.present:
|
||||||
|
- name : {{ get_config_item('user') }}
|
||||||
|
- createhome: False
|
||||||
|
- shell: /sbin/nologin
|
||||||
|
|
||||||
{{ memcached.config_file }}:
|
{{ memcached.config_file }}:
|
||||||
file:
|
file:
|
||||||
@ -21,3 +28,6 @@ include:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: memcached
|
- service: memcached
|
||||||
|
- require:
|
||||||
|
- user: memcached_user
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
'Suse':{
|
'Suse':{
|
||||||
'server': 'memcached',
|
'server': 'memcached',
|
||||||
'service': 'memcached',
|
'service': 'memcached',
|
||||||
'python': 'python-python-memcache',
|
'python': 'python-python-memcached',
|
||||||
'config_file': '/etc/memcached.conf',
|
'config_file': '/etc/memcached.conf',
|
||||||
'libmemcached': 'libmemcached-devel',
|
'libmemcached': 'libmemcached-devel',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user