add support for Debian Linux distribution

This commit is contained in:
Lei Zhang 2014-07-28 11:10:45 +08:00
parent a454187d63
commit 9d37d6c8dd
3 changed files with 18 additions and 0 deletions

View File

@ -1,8 +1,12 @@
{% from 'memcached/map.jinja' import memcached with context %}
memcached: memcached:
pkg: pkg:
- installed - installed
- name: {{ memcached.server }}
service: service:
- running - running
- enable: True - enable: True
- name: {{ memcached.service }}
- require: - require:
- pkg: memcached - pkg: memcached

View File

@ -13,3 +13,15 @@
'max_core_file_limit': False, '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')) %}

View File

@ -1,8 +1,10 @@
{% from 'memcached/map.jinja' import memcached with context %}
include: include:
- memcached - memcached
python-memcached: python-memcached:
pkg: pkg:
- installed - installed
- name: {{ memcached.python }}
- require: - require:
- pkg: memcached - pkg: memcached