blob: 360cab591e5ba9a38358473d3c7316ea29fcea6c [file] [log] [blame]
{% set server = salt['grains.filter_by']({
'Debian': {
'pkgs': ['nginx', 'apache2-utils'],
'service': 'nginx',
'system_user': 'www-data',
'vhost_dir': '/etc/nginx/sites-available',
'log_dir': '/var/log/nginx',
},
'RedHat': {
'pkgs': ['nginx', 'httpd-tools'],
'service': 'nginx',
'system_user': 'nginx',
'vhost_dir': '/etc/nginx/conf.d',
'log_dir': '/var/log/nginx',
},
}, merge=salt['pillar.get']('nginx:server')) %}