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,
|
2014-10-31 17:22:16 +01:00
|
|
|
'old_init_disable': 'update-rc.d -f nginx remove',
|
|
|
|
'use_upstart': True,
|
|
|
|
'use_sysvinit': False,
|
|
|
|
'home': '/var/www',
|
|
|
|
'conf_dir': '/etc/nginx',
|
|
|
|
'log_dir': '/var/log/nginx',
|
|
|
|
'sbin_dir': '/usr/sbin',
|
|
|
|
'install_prefix': '/usr/local/nginx',
|
|
|
|
'make_flags': '-j2'
|
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,
|
2014-10-31 17:22:16 +01:00
|
|
|
'old_init_disable': 'chkconfig --del nginx',
|
|
|
|
'use_upstart': True,
|
|
|
|
'use_sysvinit': False,
|
|
|
|
'home': '/var/www',
|
|
|
|
'conf_dir': '/etc/nginx',
|
|
|
|
'log_dir': '/var/log/nginx',
|
|
|
|
'sbin_dir': '/usr/sbin',
|
|
|
|
'install_prefix': '/usr/local/nginx',
|
|
|
|
'make_flags': '-j2'
|
2014-06-18 11:57:05 +02:00
|
|
|
},
|
2014-10-20 10:59:16 +02:00
|
|
|
}, merge=salt['pillar.get']('nginx:lookup'), default='Debian') %}
|