|
|
|
|
|
|
|
|
'vhost_available': '/etc/nginx/sites-available', |
|
|
'vhost_available': '/etc/nginx/sites-available', |
|
|
'vhost_enabled': '/etc/nginx/sites-enabled', |
|
|
'vhost_enabled': '/etc/nginx/sites-enabled', |
|
|
'vhost_use_symlink': True, |
|
|
'vhost_use_symlink': True, |
|
|
|
|
|
'pid_file': '/run/nginx.pid', |
|
|
}, |
|
|
}, |
|
|
'RedHat': { |
|
|
'RedHat': { |
|
|
'package': 'nginx', |
|
|
'package': 'nginx', |
|
|
|
|
|
|
|
|
'vhost_available': '/etc/nginx/conf.d', |
|
|
'vhost_available': '/etc/nginx/conf.d', |
|
|
'vhost_enabled': '/etc/nginx/conf.d', |
|
|
'vhost_enabled': '/etc/nginx/conf.d', |
|
|
'vhost_use_symlink': False, |
|
|
'vhost_use_symlink': False, |
|
|
|
|
|
'pid_file': '/run/nginx.pid', |
|
|
}, |
|
|
}, |
|
|
'Suse': { |
|
|
'Suse': { |
|
|
'package': 'nginx', |
|
|
'package': 'nginx', |
|
|
|
|
|
|
|
|
'vhost_available': '/etc/nginx/conf.d', |
|
|
'vhost_available': '/etc/nginx/conf.d', |
|
|
'vhost_enabled': '/etc/nginx/conf.d', |
|
|
'vhost_enabled': '/etc/nginx/conf.d', |
|
|
'vhost_use_symlink': False, |
|
|
'vhost_use_symlink': False, |
|
|
|
|
|
'pid_file': '/run/nginx.pid', |
|
|
|
|
|
}, |
|
|
|
|
|
'Arch': { |
|
|
|
|
|
'package': 'nginx', |
|
|
|
|
|
'service': 'nginx', |
|
|
|
|
|
'webuser': 'http', |
|
|
|
|
|
'conf_file': '/etc/nginx/nginx.conf', |
|
|
|
|
|
'vhost_available': '/etc/nginx/sites-available', |
|
|
|
|
|
'vhost_enabled': '/etc/nginx/sites-enabled', |
|
|
|
|
|
'vhost_use_symlink': True, |
|
|
}, |
|
|
}, |
|
|
}, default='Debian' ), |
|
|
}, default='Debian' ), |
|
|
'install_from_source': False, |
|
|
'install_from_source': False, |
|
|
|
|
|
|
|
|
'opts': {}, |
|
|
'opts': {}, |
|
|
'config': { |
|
|
'config': { |
|
|
'worker_processes': 4, |
|
|
'worker_processes': 4, |
|
|
'pid': '/run/nginx.pid', |
|
|
|
|
|
'events': { |
|
|
'events': { |
|
|
'worker_connections': 768, |
|
|
'worker_connections': 768, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
'user': nginx.lookup.webuser, |
|
|
'user': nginx.lookup.webuser, |
|
|
})%} |
|
|
})%} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if 'pid' not in nginx.server.config and 'pid_file' in nginx.lookup %} |
|
|
|
|
|
{% do nginx.server.config.update({ |
|
|
|
|
|
'pid': nginx.lookup.pid_file, |
|
|
|
|
|
})%} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|