forked from mm53bar/sprinkler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.rb
55 lines (50 loc) · 1.49 KB
/
setup.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$: << File.dirname(__FILE__)
require 'config'
require 'lib/verifiers'
require 'packages/update'
require 'packages/git'
require 'packages/host'
require 'packages/deploy'
require 'packages/init'
require 'packages/ufw'
require 'packages/utilities'
require 'packages/ssh'
require 'packages/timezone'
#require 'packages/rvm'
require 'packages/postgres'
require 'packages/nginx'
require 'packages/unicorn'
require 'packages/app'
require 'packages/ruby'
require 'packages/redis'
require 'packages/rbenv'
ASSETS_PATH = File.join(File.dirname(__FILE__), 'assets')
policy :stack, :roles => :app do
requires :initialize
requires :system_update
#requires :timezone # TODO: Not sure if this is actually needed
requires :host
requires :deployer
#requires :firewall
requires :scm
requires :ruby # TODO: Resolve issues with verifying rvm install
requires :database
requires :appserver
requires :webserver
#requires :logrotate
requires :ssh # TODO: turn this on once policy is good. It'll disable root login so make sure everything is good!
requires :app
requires :redis
end
deployment do
delivery :ssh do
roles :app => HOSTIP
user ROOT_USER
password ROOT_USER_PASSWORD
end
source do
prefix '/usr/local' # where all source packages will be configured to install
archives '/usr/local/sources' # where all source packages will be downloaded to
builds '/usr/local/build' # where all source packages will be built
end
end