This commit is contained in:
N 2020-03-28 00:22:49 +00:00
commit f441a28568
No known key found for this signature in database
GPG Key ID: 55A292EAB4E54067
2 changed files with 11 additions and 1 deletions

View File

@ -1,8 +1,15 @@
{% from 'memcached/map.jinja' import memcached with context %}
{% from 'memcached/macros.sls' import get_config_item with context -%}
include:
- memcached
memcached_user:
user.present:
- name : {{ get_config_item('user') }}
- createhome: False
- shell: /sbin/nologin
{{ memcached.config_file }}:
file:
- managed
@ -21,3 +28,6 @@ include:
{% endif %}
- watch_in:
- service: memcached
- require:
- user: memcached_user

View File

@ -18,7 +18,7 @@
'Suse':{
'server': 'memcached',
'service': 'memcached',
'python': 'python-python-memcache',
'python': 'python-python-memcached',
'config_file': '/etc/memcached.conf',
'libmemcached': 'libmemcached-devel',
},