assure that the specified user is present

This commit is contained in:
NoNE 2018-03-24 00:11:30 +02:00 committed by GitHub
parent 4699eed7ce
commit 6f8f59ad48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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