Sha256: 485a657d041da5de889004750529cc8489e1976fa37700afe823122eb5fb6dc3
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
include_recipe 'nginx::commons_dir' directory node['nginx']['socketproxy']['root'] do owner node['nginx']['socketproxy']['app_owner'] group node['nginx']['socketproxy']['app_owner'] mode 00755 action :create end context_names = node['nginx']['socketproxy']['apps'].map do |_app, app_conf| app_conf['context_name'] end fail 'More than one app has the same context_name configured.' if context_names.uniq.length != context_names.length template node['nginx']['dir'] + '/sites-available/socketproxy.conf' do source 'modules/socketproxy.conf.erb' owner 'root' group 'root' mode 00644 notifies :reload, 'service[nginx]', :delayed end link node['nginx']['dir'] + '/sites-enabled/socketproxy.conf' do to node['nginx']['dir'] + '/sites-available/socketproxy.conf' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
from-scratch-0.7.0 | cookbooks/nginx/recipes/socketproxy.rb |
from-scratch-0.6.0 | cookbooks/nginx/recipes/socketproxy.rb |
from-scratch-0.5.0 | cookbooks/nginx/recipes/socketproxy.rb |