masson
Version:
Module execution engine for cluster deployments.
29 lines (22 loc) • 857 B
Markdown
export default (service) ->
options = service.options
options.conf_dir ?= '/etc/nginx'
options.log_dir ?= '/var/log/nginx'
options.iptables ?= service.deps.iptables and service.deps.iptables.options.action is 'start'
options.group = name: options.group if typeof options.group is 'string'
options.group ?= {}
options.group.name ?= 'nginx'
options.group.system ?= true
options.user = name: options.user if typeof options.user is 'string'
options.user ?= {}
options.user.name ?= 'nginx'
options.user.gid ?= options.group.name
options.user.system ?= true
options.user.comment ?= 'NGINX Web Server User'
options.user.home ?= '/var/lib/nginx'
options.user.shell ?= false