shards 2.6.pre.rc2 → 2.6.pre.rc3
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 +1 -1
- data/lib/settings/workflows/fingerprints_by_api.yaml +14 -13
- data/lib/shards/version.rb +1 -1
- data/lib/shards/workflow/base.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dcab915bec62f9944605c5b8e164cdad4814473e2a0b3fe2656476efca2e172c
|
|
4
|
+
data.tar.gz: 738a1449ce96c6f67b58c40df4a023a89af81b4f02e898f5f4405af0aeb606b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60b27f55222eb5f4680c7d2eb808fadadeb1141997b5c044a960e9116c5d65d78b92bedb3c4e04e905d160116e074c2c907c227896bf9fe5a9e8353d7612a320
|
|
7
|
+
data.tar.gz: a6305089bdd0cc0332cccdc831f3ed81bfd370b3f1ab67f7b05e81f158edf70242d68f191818e8088b06622ba1285d691e5bb828a4feb043accfb9c5c5c3b9d7
|
data/Gemfile.lock
CHANGED
|
@@ -5,11 +5,16 @@ fingerprints_by_api:
|
|
|
5
5
|
|
|
6
6
|
# import validate client domain location and stage from fingerprints terminal
|
|
7
7
|
|
|
8
|
+
validate_stage:
|
|
9
|
+
correct: check_fingerprints
|
|
10
|
+
wrong_message: Stage %s does not exist.
|
|
11
|
+
wrong: finish
|
|
12
|
+
|
|
8
13
|
check_fingerprints:
|
|
9
14
|
message: The yaml files have been updated correctly in server(s).
|
|
10
15
|
wrong_message: Fingerprints are not matching %s
|
|
11
16
|
correct: application_reload_shards_task
|
|
12
|
-
wrong:
|
|
17
|
+
wrong: puppet_agent_update
|
|
13
18
|
|
|
14
19
|
application_reload_shards_task:
|
|
15
20
|
message: Reload task have been executed successfully.
|
|
@@ -19,28 +24,24 @@ fingerprints_by_api:
|
|
|
19
24
|
|
|
20
25
|
puppet_agent_update:
|
|
21
26
|
message: Puppet has been executed successfully.
|
|
22
|
-
correct:
|
|
27
|
+
correct: check_fingerprints2
|
|
23
28
|
wrong_message: Errors executing the puppet update % s
|
|
24
|
-
wrong:
|
|
29
|
+
wrong: finish
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
check_fingerprints2:
|
|
32
|
+
message: The yaml files have been updated correctly in server(s).
|
|
33
|
+
wrong_message: Fingerprints are not matching %s
|
|
34
|
+
correct: application_reload_shards_task
|
|
29
35
|
wrong: finish
|
|
30
|
-
wrong_message: This is the %dth loop. The maximun is (%d).
|
|
31
|
-
total_loops: 1
|
|
32
|
-
seconds_between_loop: 1
|
|
33
36
|
|
|
34
37
|
correct_steps_summary:
|
|
35
38
|
- validate_client
|
|
36
39
|
- validate_domain
|
|
37
40
|
- validate_location
|
|
38
41
|
- validate_stage
|
|
39
|
-
# Run a 1 time loop when the above check fails.
|
|
40
|
-
- loop_step
|
|
41
|
-
- puppet_agent_update
|
|
42
42
|
- check_fingerprints
|
|
43
|
-
|
|
43
|
+
- puppet_agent_update
|
|
44
|
+
- check_fingerprints2
|
|
44
45
|
- application_reload_shards_task
|
|
45
46
|
- dns_upsert
|
|
46
47
|
|
data/lib/shards/version.rb
CHANGED
data/lib/shards/workflow/base.rb
CHANGED
|
@@ -283,6 +283,11 @@ module Shards
|
|
|
283
283
|
output_message step['message']
|
|
284
284
|
end
|
|
285
285
|
|
|
286
|
+
def check_fingerprints2
|
|
287
|
+
# this method if for the second time after puppet
|
|
288
|
+
check_fingerprints
|
|
289
|
+
end
|
|
290
|
+
|
|
286
291
|
def loop_step
|
|
287
292
|
@current_loop||=0
|
|
288
293
|
@total_loops||=step['total_loops']
|
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.6.pre.
|
|
4
|
+
version: 2.6.pre.rc3
|
|
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-02-
|
|
11
|
+
date: 2019-02-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|