standup 0.3.26 → 0.3.27
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/scripts/postgresql.rb +11 -6
- data/scripts/postgresql/postgresql.conf +4 -4
- data/scripts/webapp.rb +4 -2
- data/standup.gemspec +3 -4
- metadata +6 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.27
|
data/scripts/postgresql.rb
CHANGED
@@ -1,20 +1,25 @@
|
|
1
1
|
Standup.script :node do
|
2
2
|
def run
|
3
|
-
install_packages '
|
4
|
-
|
3
|
+
install_packages 'python-software-properties'
|
4
|
+
sudo 'add-apt-repository ppa:pitti/postgresql'
|
5
|
+
sudo 'apt-get update'
|
6
|
+
|
7
|
+
#TODO execute sql /usr/share/postgresql/9.0/contrib/adminpack.sql
|
8
|
+
install_packages 'postgresql postgresql-contrib libpq-dev'
|
9
|
+
|
5
10
|
upload script_file('pg_hba.conf'),
|
6
|
-
:to => '/etc/postgresql/
|
11
|
+
:to => '/etc/postgresql/9.0/main/pg_hba.conf',
|
7
12
|
:sudo => true
|
8
13
|
|
9
14
|
upload script_file('postgresql.conf'),
|
10
|
-
:to => '/etc/postgresql/
|
15
|
+
:to => '/etc/postgresql/9.0/main/postgresql.conf',
|
11
16
|
:sudo => true
|
12
17
|
|
13
18
|
tune_kernel
|
14
19
|
|
15
|
-
sudo 'service postgresql
|
20
|
+
sudo 'service postgresql restart'
|
16
21
|
end
|
17
|
-
|
22
|
+
|
18
23
|
def exec_sql sql, local = false
|
19
24
|
command = "psql -c \"#{sql}\" -U postgres -w"
|
20
25
|
if local
|
@@ -38,15 +38,15 @@
|
|
38
38
|
# The default values of these variables are driven from the -D command-line
|
39
39
|
# option or PGDATA environment variable, represented here as ConfigDir.
|
40
40
|
|
41
|
-
data_directory = '/var/lib/postgresql/
|
41
|
+
data_directory = '/var/lib/postgresql/9.0/main' # use data in another directory
|
42
42
|
# (change requires restart)
|
43
|
-
hba_file = '/etc/postgresql/
|
43
|
+
hba_file = '/etc/postgresql/9.0/main/pg_hba.conf' # host-based authentication file
|
44
44
|
# (change requires restart)
|
45
|
-
ident_file = '/etc/postgresql/
|
45
|
+
ident_file = '/etc/postgresql/9.0/main/pg_ident.conf' # ident configuration file
|
46
46
|
# (change requires restart)
|
47
47
|
|
48
48
|
# If external_pid_file is not explicitly set, no extra PID file is written.
|
49
|
-
external_pid_file = '/var/run/postgresql/
|
49
|
+
external_pid_file = '/var/run/postgresql/9.0-main.pid' # write an extra PID file
|
50
50
|
# (change requires restart)
|
51
51
|
|
52
52
|
|
data/scripts/webapp.rb
CHANGED
@@ -4,7 +4,8 @@ Standup.script :node do
|
|
4
4
|
:name => 'webapp',
|
5
5
|
:server_name => '_',
|
6
6
|
:git_branch => 'master',
|
7
|
-
:gem_manager => :bundler
|
7
|
+
:gem_manager => :bundler,
|
8
|
+
:bootstrap_db => 'false'
|
8
9
|
}
|
9
10
|
|
10
11
|
def run
|
@@ -30,7 +31,8 @@ Standup.script :node do
|
|
30
31
|
|
31
32
|
install_gems
|
32
33
|
|
33
|
-
|
34
|
+
#TODO move boolean check to global stuff
|
35
|
+
bootstrap_db if params.bootstrap_db.match(/(true|t|yes|y|1)$/i) != nil
|
34
36
|
|
35
37
|
sudo "chown -R www-data:www-data #{app_path}"
|
36
38
|
|
data/standup.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{standup}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.27"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ilia Ablamonov", "Artem Orlov", "Cloud Castle Inc."]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-28}
|
13
13
|
s.default_executable = %q{standup}
|
14
14
|
s.email = %q{ilia@flamefork.ru}
|
15
15
|
s.executables = ["standup"]
|
@@ -86,11 +86,10 @@ Gem::Specification.new do |s|
|
|
86
86
|
]
|
87
87
|
s.homepage = %q{https://github.com/cloudcastle/standup}
|
88
88
|
s.require_paths = ["lib"]
|
89
|
-
s.rubygems_version = %q{1.
|
89
|
+
s.rubygems_version = %q{1.4.2}
|
90
90
|
s.summary = %q{Standup is an application deployment and infrastructure management tool for Rails and Amazon EC2}
|
91
91
|
|
92
92
|
if s.respond_to? :specification_version then
|
93
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
94
93
|
s.specification_version = 3
|
95
94
|
|
96
95
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 37
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 27
|
10
|
+
version: 0.3.27
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ilia Ablamonov
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-03-
|
20
|
+
date: 2011-03-28 00:00:00 +04:00
|
21
21
|
default_executable: standup
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
requirements: []
|
248
248
|
|
249
249
|
rubyforge_project:
|
250
|
-
rubygems_version: 1.
|
250
|
+
rubygems_version: 1.4.2
|
251
251
|
signing_key:
|
252
252
|
specification_version: 3
|
253
253
|
summary: Standup is an application deployment and infrastructure management tool for Rails and Amazon EC2
|