shards 2.5.6 → 2.6.pre.rc1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/lib/settings/workflows/base.yaml +2 -2
- data/lib/settings/workflows/delete_by_api.yaml +2 -1
- data/lib/settings/workflows/fast_terminal.yaml +2 -1
- data/lib/settings/workflows/fingerprints_by_api.yaml +2 -3
- data/lib/settings/workflows/fingerprints_terminal.yaml +2 -3
- data/lib/settings/workflows/fingerprints_terminal_two.yaml +1 -2
- data/lib/shards/version.rb +1 -1
- data/lib/shards/workflow/base.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b146af1b15c1dc1d7f0457425b62ac40c68c9203af0eb7cca60363965afd4bb
|
|
4
|
+
data.tar.gz: 7488b0379cbedcebe48834b0a88a5845f7ab28e3ef99731686a5239c689071f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fd6fffa5ae47d0ced60da19f74c523fb14570fde1960bf70fd577f9b4bb1f41fad39b9cb3a2d4d264c16541f56ba6418f079adfd12753780e66104909b2b869
|
|
7
|
+
data.tar.gz: 1a3c3431fa7f69e53bfe95bbf0d9f937d5b712a1f0692c227f4cb82d42fa3b4c41af3b6511cf17ee69b24e425a3d5f52cc993fb91c821ddd5b09d1164b336492
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
shards (2.
|
|
4
|
+
shards (2.6.pre.rc1)
|
|
5
5
|
aws-sdk-ec2 (~> 1.48)
|
|
6
6
|
aws-sdk-elasticloadbalancing (~> 1.5)
|
|
7
7
|
aws-sdk-elasticloadbalancingv2 (~> 1.14)
|
|
@@ -24,19 +24,19 @@ GEM
|
|
|
24
24
|
rspec-expectations (>= 2.99)
|
|
25
25
|
thor (~> 0.19)
|
|
26
26
|
aws-eventstream (1.0.1)
|
|
27
|
-
aws-partitions (1.
|
|
28
|
-
aws-sdk-core (3.
|
|
27
|
+
aws-partitions (1.136.0)
|
|
28
|
+
aws-sdk-core (3.46.0)
|
|
29
29
|
aws-eventstream (~> 1.0)
|
|
30
30
|
aws-partitions (~> 1.0)
|
|
31
31
|
aws-sigv4 (~> 1.0)
|
|
32
32
|
jmespath (~> 1.0)
|
|
33
|
-
aws-sdk-ec2 (1.
|
|
33
|
+
aws-sdk-ec2 (1.67.0)
|
|
34
34
|
aws-sdk-core (~> 3, >= 3.39.0)
|
|
35
35
|
aws-sigv4 (~> 1.0)
|
|
36
36
|
aws-sdk-elasticloadbalancing (1.8.0)
|
|
37
37
|
aws-sdk-core (~> 3, >= 3.39.0)
|
|
38
38
|
aws-sigv4 (~> 1.0)
|
|
39
|
-
aws-sdk-elasticloadbalancingv2 (1.
|
|
39
|
+
aws-sdk-elasticloadbalancingv2 (1.20.0)
|
|
40
40
|
aws-sdk-core (~> 3, >= 3.39.0)
|
|
41
41
|
aws-sigv4 (~> 1.0)
|
|
42
42
|
aws-sdk-route53 (1.17.0)
|
|
@@ -93,7 +93,7 @@ GEM
|
|
|
93
93
|
terminal-table (1.8.0)
|
|
94
94
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
|
95
95
|
thor (0.20.0)
|
|
96
|
-
unicode-display_width (1.4.
|
|
96
|
+
unicode-display_width (1.4.1)
|
|
97
97
|
|
|
98
98
|
PLATFORMS
|
|
99
99
|
ruby
|
|
@@ -42,7 +42,7 @@ shared_steps:
|
|
|
42
42
|
commit_changes:
|
|
43
43
|
message: The changes has been committed and pushed to the remote repository.
|
|
44
44
|
wrong_message: We had an issue to commit and push the changes.
|
|
45
|
-
correct:
|
|
45
|
+
correct: loop_step
|
|
46
46
|
wrong: finish
|
|
47
47
|
|
|
48
48
|
check_fingerprints:
|
|
@@ -61,7 +61,7 @@ shared_steps:
|
|
|
61
61
|
message: Puppet has been executed successfully.
|
|
62
62
|
correct: check_fingerprints
|
|
63
63
|
wrong_message: Errors executing the puppet update % s
|
|
64
|
-
wrong:
|
|
64
|
+
wrong: loop_step
|
|
65
65
|
|
|
66
66
|
loop_step:
|
|
67
67
|
correct: puppet_agent_update
|
|
@@ -35,7 +35,7 @@ delete_by_api:
|
|
|
35
35
|
delete_database:
|
|
36
36
|
wrong_message: The database %s could not be deleted.
|
|
37
37
|
message: Database %s has been deleted.
|
|
38
|
-
correct:
|
|
38
|
+
correct: puppet_agent_update
|
|
39
39
|
wrong: finish
|
|
40
40
|
|
|
41
41
|
application_reload_shards_task:
|
|
@@ -55,6 +55,7 @@ correct_steps_summary:
|
|
|
55
55
|
- write_yaml_files
|
|
56
56
|
- commit_changes
|
|
57
57
|
- delete_database
|
|
58
|
+
- puppet_agent_update
|
|
58
59
|
- check_fingerprints
|
|
59
60
|
|
|
60
61
|
start: validate_location
|
|
@@ -18,10 +18,11 @@ correct_steps_summary:
|
|
|
18
18
|
- write_yaml_files
|
|
19
19
|
- create_database
|
|
20
20
|
- commit_changes
|
|
21
|
+
- puppet_agent_update
|
|
21
22
|
- check_fingerprints
|
|
22
23
|
# Run a 3 times loop when the above check fails.
|
|
23
24
|
- loop_step
|
|
24
|
-
-
|
|
25
|
+
- puppet_agent_update
|
|
25
26
|
- check_fingerprints
|
|
26
27
|
# finish loop
|
|
27
28
|
- application_reload_shards_task
|
|
@@ -29,17 +29,16 @@ fingerprints_by_api:
|
|
|
29
29
|
wrong: finish
|
|
30
30
|
wrong_message: This is the %dth loop. The maximun is (%d).
|
|
31
31
|
total_loops: 1
|
|
32
|
-
seconds_between_loop:
|
|
32
|
+
seconds_between_loop: 300
|
|
33
33
|
|
|
34
34
|
correct_steps_summary:
|
|
35
35
|
- validate_client
|
|
36
36
|
- validate_domain
|
|
37
37
|
- validate_location
|
|
38
38
|
- validate_stage
|
|
39
|
-
- check_fingerprints
|
|
40
39
|
# Run a 1 time loop when the above check fails.
|
|
41
40
|
- loop_step
|
|
42
|
-
-
|
|
41
|
+
- puppet_agent_update
|
|
43
42
|
- check_fingerprints
|
|
44
43
|
# finish loop
|
|
45
44
|
- application_reload_shards_task
|
|
@@ -17,7 +17,7 @@ fingerprints_terminal:
|
|
|
17
17
|
regex: ^[a-z0-9_\-]*$
|
|
18
18
|
|
|
19
19
|
validate_stage:
|
|
20
|
-
correct:
|
|
20
|
+
correct: loop_step
|
|
21
21
|
wrong_message: Stage %s does not exist.
|
|
22
22
|
wrong: finish
|
|
23
23
|
|
|
@@ -31,10 +31,9 @@ correct_steps_summary:
|
|
|
31
31
|
- validate_domain
|
|
32
32
|
- validate_location
|
|
33
33
|
- validate_stage
|
|
34
|
-
- check_fingerprints
|
|
35
34
|
# Run a 3 times loop when the above check fails.
|
|
36
35
|
- loop_step # start the loop here
|
|
37
|
-
-
|
|
36
|
+
- puppet_agent_update
|
|
38
37
|
- check_fingerprints # finish loop
|
|
39
38
|
- application_reload_shards_task
|
|
40
39
|
- dns_upsert
|
|
@@ -22,10 +22,9 @@ fingerprints_terminal_two:
|
|
|
22
22
|
correct_steps_summary:
|
|
23
23
|
- validate_location
|
|
24
24
|
- validate_stage
|
|
25
|
-
- check_fingerprints
|
|
26
25
|
# Run a 3 times loop when the above check fails.
|
|
27
26
|
- loop_step # start the loop here
|
|
28
|
-
-
|
|
27
|
+
- puppet_agent_update
|
|
29
28
|
- check_fingerprints # finish loop
|
|
30
29
|
- application_reload_shards_task
|
|
31
30
|
|
data/lib/shards/version.rb
CHANGED
data/lib/shards/workflow/base.rb
CHANGED
|
@@ -289,7 +289,7 @@ module Shards
|
|
|
289
289
|
@current_loop+=1
|
|
290
290
|
raise_wrong_text [current_loop,@total_loops] if current_loop>@total_loops
|
|
291
291
|
output_message step['message'] % [step['correct'], step['seconds_between_loop']]
|
|
292
|
-
sleep step['seconds_between_loop']
|
|
292
|
+
sleep step['seconds_between_loop'] if @current_loop>1
|
|
293
293
|
end
|
|
294
294
|
|
|
295
295
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shards
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.6.pre.rc1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Diego PL
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01
|
|
11
|
+
date: 2019-02-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -301,9 +301,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
301
301
|
version: '0'
|
|
302
302
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
303
|
requirements:
|
|
304
|
-
- - "
|
|
304
|
+
- - ">"
|
|
305
305
|
- !ruby/object:Gem::Version
|
|
306
|
-
version:
|
|
306
|
+
version: 1.3.1
|
|
307
307
|
requirements: []
|
|
308
308
|
rubyforge_project:
|
|
309
309
|
rubygems_version: 2.7.8
|