Merge pull request #19 from MoHD20/master
assure that the specified user is present
This commit is contained in:
commit
d729a1509b
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user