postgresinator 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/postgresinator/built-in.rb +198 -0
- data/lib/postgresinator/check.rb +130 -0
- data/lib/postgresinator/config.rb +69 -118
- data/lib/postgresinator/db.rb +126 -0
- data/lib/postgresinator/examples/Capfile +1 -1
- data/lib/postgresinator/examples/Dockerfile +7 -6
- data/lib/postgresinator/examples/config/deploy/staging.rb +29 -50
- data/lib/postgresinator/examples/config/deploy.rb +8 -58
- data/lib/postgresinator/examples/pg_hba.conf.erb +5 -7
- data/lib/postgresinator/examples/postgresql.conf.erb +6 -6
- data/lib/postgresinator/examples/recovery.conf.erb +2 -2
- data/lib/postgresinator/pg.rb +117 -486
- data/lib/postgresinator.rb +4 -1
- metadata +25 -24
- data/lib/postgresinator/examples/config/deploy/staging_postgresinator.rb +0 -43
- data/lib/postgresinator/examples/config/deploy_postgresinator.rb +0 -1
data/lib/postgresinator.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postgresinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,14 +9,14 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 3.2.1
|
22
22
|
type: :runtime
|
@@ -24,72 +24,73 @@ dependencies:
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 3.2.1
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: deployinator
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 0.1.3
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 0.1.3
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: rake
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 10.3.2
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 10.3.2
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: sshkit
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 1.5.1
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
78
|
-
description:
|
77
|
+
version: 1.5.1
|
78
|
+
description: Deploy PostgreSQL instances using Capistrano and Docker
|
79
79
|
email: davidamick@ctisolutionsinc.com
|
80
80
|
executables: []
|
81
81
|
extensions: []
|
82
82
|
extra_rdoc_files: []
|
83
83
|
files:
|
84
84
|
- lib/postgresinator.rb
|
85
|
-
- lib/postgresinator/
|
85
|
+
- lib/postgresinator/built-in.rb
|
86
|
+
- lib/postgresinator/check.rb
|
86
87
|
- lib/postgresinator/config.rb
|
88
|
+
- lib/postgresinator/db.rb
|
89
|
+
- lib/postgresinator/pg.rb
|
87
90
|
- lib/postgresinator/examples/Dockerfile
|
88
91
|
- lib/postgresinator/examples/Capfile
|
89
92
|
- lib/postgresinator/examples/config/deploy.rb
|
90
|
-
- lib/postgresinator/examples/config/deploy_postgresinator.rb
|
91
93
|
- lib/postgresinator/examples/config/deploy/staging.rb
|
92
|
-
- lib/postgresinator/examples/config/deploy/staging_postgresinator.rb
|
93
94
|
- lib/postgresinator/examples/postgresql.conf.erb
|
94
95
|
- lib/postgresinator/examples/pg_hba.conf.erb
|
95
96
|
- lib/postgresinator/examples/recovery.conf.erb
|
@@ -113,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
114
|
- !ruby/object:Gem::Version
|
114
115
|
version: '0'
|
115
116
|
requirements:
|
116
|
-
- Docker
|
117
|
+
- Docker ~> 1.3.1
|
117
118
|
rubyforge_project:
|
118
119
|
rubygems_version: 1.8.23.2
|
119
120
|
signing_key:
|
@@ -1,43 +0,0 @@
|
|
1
|
-
## For a standard Ubuntu 12.04 Nginx Docker image you should only
|
2
|
-
## need to change the following values to get started:
|
3
|
-
|
4
|
-
set :domain, "my-app.example.com"
|
5
|
-
set :postgres_image_name, "snarlysodboxer/postgresql:0.0.1"
|
6
|
-
set :postgres_config_files, ["postgresql.conf", "pg_hba.conf", "recovery.conf"]
|
7
|
-
set :postgres_data_path, "/var/lib/postgresql/9.1/main"
|
8
|
-
set :postgres_conf_path, "/etc/postgresql/9.1/main"
|
9
|
-
set :postgres_sock_path, "/var/run/postgresql"
|
10
|
-
set :postgres_uid, "101"
|
11
|
-
set :postgres_gid, "104"
|
12
|
-
set :databases, [
|
13
|
-
{
|
14
|
-
"name" => "client",
|
15
|
-
"db_role" => "client",
|
16
|
-
"pass" => "client"
|
17
|
-
}
|
18
|
-
]
|
19
|
-
set :servers, -> {
|
20
|
-
[
|
21
|
-
{
|
22
|
-
"master" => true,
|
23
|
-
"domain" => fetch(:domain),
|
24
|
-
"port" => "5432"
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"master" => false,
|
28
|
-
"domain" => "my-app-other.example.com",
|
29
|
-
"port" => "5433"
|
30
|
-
}
|
31
|
-
]
|
32
|
-
}
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
## The values below may be commonly changed to match specifics
|
37
|
-
## relating to a particular Docker image or setup:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
## The values below are not meant to be changed and shouldn't
|
42
|
-
## need to be under the majority of circumstances:
|
43
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
# Only stage-specific postgresinator config options are needed.
|