manageiq-postgres_ha_admin 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/CHANGELOG.md +18 -0
- data/lib/manageiq/postgres_ha_admin/failover_databases.rb +2 -2
- data/lib/manageiq/postgres_ha_admin/version.rb +1 -1
- data/manageiq-postgres_ha_admin.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea7e89193add948ecd827491eae6c7e055c20a6
|
4
|
+
data.tar.gz: d416a3b5fd696ca582e13e360b6ea00af762aa58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a76ffe81cb4c0f218a5374a333f2458da83c59ff14cbc285ba9787c58e4362568c7c0303d794f587098ae3aa4b6fe144fc44c6ef1270e990e1581e5c83521394
|
7
|
+
data.tar.gz: 2aaeb1824891fad95440f473ccd864a048538ddcdf37832a9d3b8c492d29d81e1a1d353ee070aca4861136a5cea8a2152bd26bf90c94c989df29e2f1bd97e088
|
data/.travis.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- '2.3.
|
4
|
-
- '2.4.
|
3
|
+
- '2.3.1'
|
4
|
+
- '2.4.2'
|
5
5
|
sudo: false
|
6
6
|
cache: bundler
|
7
7
|
env:
|
@@ -9,4 +9,6 @@ env:
|
|
9
9
|
- RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000
|
10
10
|
- RUBY_GC_HEAP_INIT_SLOTS=600000
|
11
11
|
- RUBY_GC_HEAP_GROWTH_FACTOR=1.25
|
12
|
+
addons:
|
13
|
+
postgresql: '9.5'
|
12
14
|
after_script: bundle exec codeclimate-test-reporter
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
|
+
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [2.0.0] - 2018-08-01
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- Add pg-dsn_parser to the gemspec [#5](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/5)
|
12
|
+
- Add postgresql addon for travis [#6](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/6)
|
13
|
+
|
14
|
+
### Changed
|
15
|
+
- Make changes for upgrading repmgr to version 4 [#4](https://github.com/ManageIQ/manageiq-postgres_ha_admin/pull/4)
|
16
|
+
|
17
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v2.0.0...master
|
18
|
+
[2.0.0]: https://github.com/ManageIQ/manageiq-postgres_ha_admin/compare/v1.0.0...v2.0.0
|
@@ -5,7 +5,7 @@ require 'pg/dsn_parser'
|
|
5
5
|
module ManageIQ
|
6
6
|
module PostgresHaAdmin
|
7
7
|
class FailoverDatabases
|
8
|
-
TABLE_NAME = "
|
8
|
+
TABLE_NAME = "repmgr.nodes".freeze
|
9
9
|
|
10
10
|
attr_reader :yml_file
|
11
11
|
|
@@ -61,7 +61,7 @@ module PostgresHaAdmin
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def entry_is_active_master?(record)
|
64
|
-
record[:type] == '
|
64
|
+
record[:type] == 'primary' && record[:active]
|
65
65
|
end
|
66
66
|
|
67
67
|
def all_databases
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_runtime_dependency "awesome_spawn", "~> 1.4"
|
24
24
|
spec.add_runtime_dependency "linux_admin", "~> 1.0"
|
25
25
|
spec.add_runtime_dependency "pg"
|
26
|
+
spec.add_runtime_dependency "pg-dsn_parser", "~> 0.1"
|
26
27
|
|
27
28
|
spec.add_development_dependency "bundler"
|
28
29
|
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-postgres_ha_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_spawn
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pg-dsn_parser
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.1'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,6 +165,7 @@ files:
|
|
151
165
|
- ".rubocop_cc.yml"
|
152
166
|
- ".rubocop_local.yml"
|
153
167
|
- ".travis.yml"
|
168
|
+
- CHANGELOG.md
|
154
169
|
- Gemfile
|
155
170
|
- LICENSE.txt
|
156
171
|
- README.md
|