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/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:
- managed - managed
@ -21,3 +28,6 @@ include:
{% endif %} {% endif %}
- watch_in: - watch_in:
- service: memcached - service: memcached
- require:
- user: memcached_user

View File

@ -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',
}, },