2014-06-18 11:57:05 +02:00
|
|
|
{% set nginx = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
|
|
|
'apache_utils': 'apache2-utils',
|
2014-10-20 10:59:16 +02:00
|
|
|
'package': 'nginx-full',
|
|
|
|
'default_user': 'www-data',
|
|
|
|
'default_group': 'www-data',
|
|
|
|
'disable_before_rename': False,
|
|
|
|
'old_init_disable': 'update-rc.d -f nginx remove'
|
2014-06-18 11:57:05 +02:00
|
|
|
},
|
|
|
|
'RedHat': {
|
|
|
|
'apache_utils': 'httpd-tools',
|
2014-10-20 10:59:16 +02:00
|
|
|
'package': 'nginx',
|
|
|
|
'default_user': 'nginx',
|
|
|
|
'default_group': 'nginx',
|
|
|
|
'disable_before_rename': True,
|
|
|
|
'old_init_disable': 'chkconfig --del nginx'
|
2014-06-18 11:57:05 +02:00
|
|
|
},
|
2014-10-20 10:59:16 +02:00
|
|
|
}, merge=salt['pillar.get']('nginx:lookup'), default='Debian') %}
|