Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shared directory subdirectories moved to variable #329

Open
wants to merge 1 commit into
base: master-chef-11.10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deploy/attributes/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
default[:deploy][application][:enable_submodules] = true
default[:deploy][application][:shallow_clone] = false
default[:deploy][application][:delete_cached_copy] = true
default[:deploy][application][:shared_subdirectories] = ['log','config','system','pids','scripts','sockets']
default[:deploy][application][:purge_before_symlink] = ['log', 'tmp/pids', 'public/system']
default[:deploy][application][:create_dirs_before_symlink] = ['tmp', 'public', 'config']
default[:deploy][application][:symlink_before_migrate] = {}
Expand Down
2 changes: 1 addition & 1 deletion deploy/definitions/opsworks_deploy_dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
end

# create shared/ directory structure
['log','config','system','pids','scripts','sockets'].each do |dir_name|
params[:shared_subdirectories].each do |dir_name|
directory "#{params[:path]}/shared/#{dir_name}" do
group params[:group]
owner params[:user]
Expand Down
1 change: 1 addition & 0 deletions deploy/recipes/aws-flow-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
user deploy[:user]
group deploy[:group]
path deploy[:deploy_to]
shared_subdirectories deploy[:shared_subdirectories]
end

opsworks_deploy do
Expand Down
1 change: 1 addition & 0 deletions deploy/recipes/java.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
user deploy[:user]
group deploy[:group]
path deploy[:deploy_to]
shared_subdirectories deploy[:shared_subdirectories]
end

opsworks_deploy do
Expand Down
1 change: 1 addition & 0 deletions deploy/recipes/nodejs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
user deploy[:user]
group deploy[:group]
path deploy[:deploy_to]
shared_subdirectories deploy[:shared_subdirectories]
end

opsworks_deploy do
Expand Down
2 changes: 1 addition & 1 deletion deploy/recipes/php.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
user deploy[:user]
group deploy[:group]
path deploy[:deploy_to]
shared_subdirectories deploy[:shared_subdirectories]
end

opsworks_deploy do
deploy_data deploy
app application
end
end

1 change: 1 addition & 0 deletions deploy/recipes/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
user deploy[:user]
group deploy[:group]
path deploy[:deploy_to]
shared_subdirectories deploy[:shared_subdirectories]
end

opsworks_rails do
Expand Down
1 change: 1 addition & 0 deletions deploy/recipes/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
user deploy[:user]
group deploy[:group]
path deploy[:deploy_to]
shared_subdirectories deploy[:shared_subdirectories]
end

opsworks_deploy do
Expand Down
1 change: 1 addition & 0 deletions unicorn/recipes/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
user deploy[:user]
group deploy[:group]
path deploy[:deploy_to]
shared_subdirectories deploy[:shared_subdirectories]
end

template "#{deploy[:deploy_to]}/shared/scripts/unicorn" do
Expand Down