Sha256: 9f9d840960096691edaf0955756b45f2698ff4f2871f852cffa004d88342a53e

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

set :ssh_key, '<%= "config/keys/environments/#{environment}/id_rsa" %>'
set(:deploy_via, :copy_subdir)
set(:deploy_subdir, 'puppet')
# Select options accord to the phase parameter
if phase == 'node_prepare'
  set :user, "root"
  set :copy_exclude, ['/profiles', '/roles', '/steps']
  set(:deploy_to) { "/root/code" }
elsif phase == 'step-0'
  set :user, "root"
  set :copy_exclude, ['/lib', '/prepare', '/profiles', '/roles']
  set(:deploy_to) { "/root/code" }
else
  set :user, "puppet"
  set :copy_exclude, ['/lib', '/prepare', '/profiles', '/roles']
  set(:deploy_to) { "/home/puppet/code" }
end
# set :deploy_via, :copy
set :scm, :none
set :repository, "."


set :ssh_options, {
  :keys => ssh_key,
  :port => '22',
  :forward_agent => 'true'
}

# Start nodes definitions
<% if nodes %>
<% nodes.each do |node| %>
  server "<%= node.hostname %>", :web, :app, :db
<% end %>
<% end %>
# End nodes definitions

desc 'Test the vagrant connection by doing issuing a simple echo command'
task :probe, roles: [:web, :app, :db] do
  run 'echo $PATH'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bebox-0.1.5 lib/templates/project/config/deploy/environment.erb
bebox-0.1.4 lib/templates/project/config/deploy/environment.erb
bebox-0.1.3 lib/templates/project/config/deploy/environment.erb
bebox-0.1.2 lib/templates/project/config/deploy/environment.erb
bebox-0.1.1 lib/templates/project/config/deploy/environment.erb
bebox-0.1.0 lib/templates/project/config/deploy/environment.erb
bebox-0.0.1 lib/templates/project/config/deploy/environment.erb