add support for Debian Linux distribution
This commit is contained in:
parent
a454187d63
commit
9d37d6c8dd
@ -1,8 +1,12 @@
|
||||
{% from 'memcached/map.jinja' import memcached with context %}
|
||||
|
||||
memcached:
|
||||
pkg:
|
||||
- installed
|
||||
- name: {{ memcached.server }}
|
||||
service:
|
||||
- running
|
||||
- enable: True
|
||||
- name: {{ memcached.service }}
|
||||
- require:
|
||||
- pkg: memcached
|
||||
|
@ -13,3 +13,15 @@
|
||||
'max_core_file_limit': False,
|
||||
}
|
||||
} %}
|
||||
{% set memcached = salt['grains.filter_by']({
|
||||
'Debian':{
|
||||
'server': 'memcached',
|
||||
'service': 'memcached',
|
||||
'python': 'python-memcache',
|
||||
},
|
||||
'RedHat': {
|
||||
'server': 'memcached',
|
||||
'service': 'memcached',
|
||||
'python': 'python-memcached',
|
||||
},
|
||||
}, merge=salt['pillar.get']('memcached:lookup')) %}
|
||||
|
@ -1,8 +1,10 @@
|
||||
{% from 'memcached/map.jinja' import memcached with context %}
|
||||
include:
|
||||
- memcached
|
||||
|
||||
python-memcached:
|
||||
pkg:
|
||||
- installed
|
||||
- name: {{ memcached.python }}
|
||||
- require:
|
||||
- pkg: memcached
|
||||
|
Loading…
Reference in New Issue
Block a user