deploy-context 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8 → 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14
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
- checksums.yaml.gz.sig +0 -0
- data/.kitchen/logs/kitchen.log +141 -141
- data/VERSION +1 -0
- data/libraries/deploy-context/deploy/context.rb +106 -0
- data/libraries/deploy-context/deploy/cookbook.rb +10 -0
- data/libraries/deploy-context/deploy.rb +2 -101
- data/metadata.rb +2 -1
- data.tar.gz.sig +0 -0
- metadata +3 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f147b83d80a527c6cf875295177a0ba49407c56d56d6cf4a0b973654c916ab83
|
4
|
+
data.tar.gz: '0392350261a7369a8a890a08ccd862ecce60b26e62f1da3bc735bf12964b2133'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d31a030e2a7c42367581309bcaf0ecfddb91508116f162a3cf825e5d2523d040726b2a033da6d5226a2836548fc30e95ed9a2cbb87705ab7271ec69e03431b23
|
7
|
+
data.tar.gz: aa078e45746f27a4f584086dae855c277d03b3501cf25606edbd8189b51e219a9e3534630870c4179271bccfc5f7ac8585561d8800abb37aa813d3b624fba52e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/.kitchen/logs/kitchen.log
CHANGED
@@ -1,149 +1,149 @@
|
|
1
|
-
I, [2023-10-04T22:
|
2
|
-
I, [2023-10-04T22:
|
3
|
-
I, [2023-10-04T22:
|
4
|
-
I, [2023-10-04T22:
|
5
|
-
I, [2023-10-04T22:
|
6
|
-
I, [2023-10-04T22:
|
7
|
-
I, [2023-10-04T22:
|
8
|
-
I, [2023-10-04T22:
|
9
|
-
I, [2023-10-04T22:
|
10
|
-
I, [2023-10-04T22:
|
11
|
-
I, [2023-10-04T22:
|
12
|
-
E, [2023-10-04T22:
|
13
|
-
E, [2023-10-04T22:
|
14
|
-
E, [2023-10-04T22:
|
1
|
+
I, [2023-10-04T22:25:05.684485 #928268] INFO -- Kitchen: -----> Starting Test Kitchen (v3.3.2)
|
2
|
+
I, [2023-10-04T22:25:06.686952 #928268] INFO -- Kitchen: -----> Cleaning up any prior instances of <default-ubuntu-2004>
|
3
|
+
I, [2023-10-04T22:25:06.687462 #928268] INFO -- Kitchen: -----> Destroying <default-ubuntu-2004>...
|
4
|
+
I, [2023-10-04T22:25:11.413431 #928268] INFO -- Kitchen: -----> Testing <default-ubuntu-2004>
|
5
|
+
I, [2023-10-04T22:25:11.413567 #928268] INFO -- Kitchen: -----> Creating <default-ubuntu-2004>...
|
6
|
+
I, [2023-10-04T22:26:21.527189 #928268] INFO -- Kitchen: -----> Converging <default-ubuntu-2004>...
|
7
|
+
I, [2023-10-04T22:26:41.343004 #928268] INFO -- Kitchen: -----> Cleaning up any prior instances of <default-centos-8>
|
8
|
+
I, [2023-10-04T22:26:41.343486 #928268] INFO -- Kitchen: -----> Destroying <default-centos-8>...
|
9
|
+
I, [2023-10-04T22:26:46.482568 #928268] INFO -- Kitchen: -----> Testing <default-centos-8>
|
10
|
+
I, [2023-10-04T22:26:46.482699 #928268] INFO -- Kitchen: -----> Creating <default-centos-8>...
|
11
|
+
I, [2023-10-04T22:27:36.713530 #928268] INFO -- Kitchen: -----> Converging <default-centos-8>...
|
12
|
+
E, [2023-10-04T22:27:59.004750 #928268] ERROR -- Kitchen: ------Exception-------
|
13
|
+
E, [2023-10-04T22:27:59.004793 #928268] ERROR -- Kitchen: Class: Kitchen::ActionFailed
|
14
|
+
E, [2023-10-04T22:27:59.004827 #928268] ERROR -- Kitchen: Message: 2 actions failed.
|
15
15
|
>>>>>> Converge failed on instance <default-ubuntu-2004>. Please see .kitchen/logs/default-ubuntu-2004.log for more details
|
16
16
|
>>>>>> Converge failed on instance <default-centos-8>. Please see .kitchen/logs/default-centos-8.log for more details
|
17
|
-
E, [2023-10-04T22:
|
18
|
-
E, [2023-10-04T22:
|
19
|
-
E, [2023-10-04T22:
|
20
|
-
E, [2023-10-04T22:
|
21
|
-
E, [2023-10-04T22:
|
22
|
-
E, [2023-10-04T22:
|
23
|
-
E, [2023-10-04T22:
|
24
|
-
E, [2023-10-04T22:
|
25
|
-
E, [2023-10-04T22:
|
26
|
-
E, [2023-10-04T22:
|
27
|
-
E, [2023-10-04T22:
|
28
|
-
E, [2023-10-04T22:
|
29
|
-
E, [2023-10-04T22:
|
30
|
-
E, [2023-10-04T22:
|
31
|
-
E, [2023-10-04T22:
|
32
|
-
E, [2023-10-04T22:
|
33
|
-
E, [2023-10-04T22:
|
34
|
-
E, [2023-10-04T22:
|
35
|
-
E, [2023-10-04T22:
|
36
|
-
E, [2023-10-04T22:
|
37
|
-
E, [2023-10-04T22:
|
38
|
-
E, [2023-10-04T22:
|
39
|
-
E, [2023-10-04T22:
|
40
|
-
E, [2023-10-04T22:
|
41
|
-
E, [2023-10-04T22:
|
42
|
-
E, [2023-10-04T22:
|
43
|
-
E, [2023-10-04T22:
|
44
|
-
E, [2023-10-04T22:
|
45
|
-
E, [2023-10-04T22:
|
46
|
-
E, [2023-10-04T22:
|
47
|
-
E, [2023-10-04T22:
|
48
|
-
E, [2023-10-04T22:
|
49
|
-
E, [2023-10-04T22:
|
50
|
-
E, [2023-10-04T22:
|
51
|
-
E, [2023-10-04T22:
|
52
|
-
E, [2023-10-04T22:
|
53
|
-
E, [2023-10-04T22:
|
54
|
-
E, [2023-10-04T22:
|
55
|
-
E, [2023-10-04T22:
|
56
|
-
E, [2023-10-04T22:
|
57
|
-
E, [2023-10-04T22:
|
58
|
-
E, [2023-10-04T22:
|
59
|
-
E, [2023-10-04T22:
|
60
|
-
E, [2023-10-04T22:
|
61
|
-
E, [2023-10-04T22:
|
62
|
-
E, [2023-10-04T22:
|
63
|
-
E, [2023-10-04T22:
|
64
|
-
E, [2023-10-04T22:
|
65
|
-
E, [2023-10-04T22:
|
17
|
+
E, [2023-10-04T22:27:59.004865 #928268] ERROR -- Kitchen: ----------------------
|
18
|
+
E, [2023-10-04T22:27:59.004899 #928268] ERROR -- Kitchen: ------Backtrace-------
|
19
|
+
E, [2023-10-04T22:27:59.004939 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:181:in `report_errors'
|
20
|
+
E, [2023-10-04T22:27:59.004981 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:172:in `run_action'
|
21
|
+
E, [2023-10-04T22:27:59.005025 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command/test.rb:41:in `block in call'
|
22
|
+
E, [2023-10-04T22:27:59.005062 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
23
|
+
E, [2023-10-04T22:27:59.005097 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command/test.rb:37:in `call'
|
24
|
+
E, [2023-10-04T22:27:59.005140 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/cli.rb:52:in `perform'
|
25
|
+
E, [2023-10-04T22:27:59.005175 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/cli.rb:250:in `test'
|
26
|
+
E, [2023-10-04T22:27:59.005202 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
|
27
|
+
E, [2023-10-04T22:27:59.005259 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
|
28
|
+
E, [2023-10-04T22:27:59.005297 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
|
29
|
+
E, [2023-10-04T22:27:59.005322 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
|
30
|
+
E, [2023-10-04T22:27:59.005363 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/bin/kitchen:11:in `block in <top (required)>'
|
31
|
+
E, [2023-10-04T22:27:59.005396 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/errors.rb:183:in `with_friendly_errors'
|
32
|
+
E, [2023-10-04T22:27:59.005431 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/bin/kitchen:11:in `<top (required)>'
|
33
|
+
E, [2023-10-04T22:27:59.005468 #928268] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:389:in `load'
|
34
|
+
E, [2023-10-04T22:27:59.005505 #928268] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:389:in `<main>'
|
35
|
+
E, [2023-10-04T22:27:59.005552 #928268] ERROR -- Kitchen: ----End Backtrace-----
|
36
|
+
E, [2023-10-04T22:27:59.005579 #928268] ERROR -- Kitchen: -Composite Exception--
|
37
|
+
E, [2023-10-04T22:27:59.005603 #928268] ERROR -- Kitchen: Class: Kitchen::InstanceFailure
|
38
|
+
E, [2023-10-04T22:27:59.005649 #928268] ERROR -- Kitchen: Message: Converge failed on instance <default-ubuntu-2004>. Please see .kitchen/logs/default-ubuntu-2004.log for more details
|
39
|
+
E, [2023-10-04T22:27:59.005693 #928268] ERROR -- Kitchen: ----------------------
|
40
|
+
E, [2023-10-04T22:27:59.005722 #928268] ERROR -- Kitchen: ------Backtrace-------
|
41
|
+
E, [2023-10-04T22:27:59.005745 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:99:in `rescue in call'
|
42
|
+
E, [2023-10-04T22:27:59.005770 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:98:in `call'
|
43
|
+
E, [2023-10-04T22:27:59.005792 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:419:in `block in converge_action'
|
44
|
+
E, [2023-10-04T22:27:59.005827 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
|
45
|
+
E, [2023-10-04T22:27:59.005870 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:524:in `block in action'
|
46
|
+
E, [2023-10-04T22:27:59.005925 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
47
|
+
E, [2023-10-04T22:27:59.005969 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:523:in `action'
|
48
|
+
E, [2023-10-04T22:27:59.006005 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:414:in `converge_action'
|
49
|
+
E, [2023-10-04T22:27:59.006054 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
|
50
|
+
E, [2023-10-04T22:27:59.006091 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
|
51
|
+
E, [2023-10-04T22:27:59.006120 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:391:in `block in transition_to'
|
52
|
+
E, [2023-10-04T22:27:59.006155 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `each'
|
53
|
+
E, [2023-10-04T22:27:59.006194 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `transition_to'
|
54
|
+
E, [2023-10-04T22:27:59.006253 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:161:in `verify'
|
55
|
+
E, [2023-10-04T22:27:59.006294 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:190:in `block in test'
|
56
|
+
E, [2023-10-04T22:27:59.006331 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
57
|
+
E, [2023-10-04T22:27:59.006387 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:186:in `test'
|
58
|
+
E, [2023-10-04T22:27:59.006433 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `public_send'
|
59
|
+
E, [2023-10-04T22:27:59.006475 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
|
60
|
+
E, [2023-10-04T22:27:59.006517 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
|
61
|
+
E, [2023-10-04T22:27:59.006553 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
|
62
|
+
E, [2023-10-04T22:27:59.006615 #928268] ERROR -- Kitchen: ----End Backtrace-----
|
63
|
+
E, [2023-10-04T22:27:59.006650 #928268] ERROR -- Kitchen: ---Nested Exception---
|
64
|
+
E, [2023-10-04T22:27:59.006678 #928268] ERROR -- Kitchen: Class: Kitchen::ActionFailed
|
65
|
+
E, [2023-10-04T22:27:59.006713 #928268] ERROR -- Kitchen: Message: SSH exited (1) for command: [sh -c '
|
66
66
|
TEST_KITCHEN="1"; export TEST_KITCHEN
|
67
67
|
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
|
68
68
|
']
|
69
|
-
E, [2023-10-04T22:
|
70
|
-
E, [2023-10-04T22:
|
71
|
-
E, [2023-10-04T22:
|
72
|
-
E, [2023-10-04T22:
|
73
|
-
E, [2023-10-04T22:
|
74
|
-
E, [2023-10-04T22:
|
75
|
-
E, [2023-10-04T22:
|
76
|
-
E, [2023-10-04T22:
|
77
|
-
E, [2023-10-04T22:
|
78
|
-
E, [2023-10-04T22:
|
79
|
-
E, [2023-10-04T22:
|
80
|
-
E, [2023-10-04T22:
|
81
|
-
E, [2023-10-04T22:
|
82
|
-
E, [2023-10-04T22:
|
83
|
-
E, [2023-10-04T22:
|
84
|
-
E, [2023-10-04T22:
|
85
|
-
E, [2023-10-04T22:
|
86
|
-
E, [2023-10-04T22:
|
87
|
-
E, [2023-10-04T22:
|
88
|
-
E, [2023-10-04T22:
|
89
|
-
E, [2023-10-04T22:
|
90
|
-
E, [2023-10-04T22:
|
91
|
-
E, [2023-10-04T22:
|
92
|
-
E, [2023-10-04T22:
|
93
|
-
E, [2023-10-04T22:
|
94
|
-
E, [2023-10-04T22:
|
95
|
-
E, [2023-10-04T22:
|
96
|
-
E, [2023-10-04T22:
|
97
|
-
E, [2023-10-04T22:
|
98
|
-
E, [2023-10-04T22:
|
99
|
-
E, [2023-10-04T22:
|
100
|
-
E, [2023-10-04T22:
|
101
|
-
E, [2023-10-04T22:
|
102
|
-
E, [2023-10-04T22:
|
103
|
-
E, [2023-10-04T22:
|
104
|
-
E, [2023-10-04T22:
|
105
|
-
E, [2023-10-04T22:
|
106
|
-
E, [2023-10-04T22:
|
107
|
-
E, [2023-10-04T22:
|
108
|
-
E, [2023-10-04T22:
|
109
|
-
E, [2023-10-04T22:
|
110
|
-
E, [2023-10-04T22:
|
111
|
-
E, [2023-10-04T22:
|
112
|
-
E, [2023-10-04T22:
|
113
|
-
E, [2023-10-04T22:
|
114
|
-
E, [2023-10-04T22:
|
115
|
-
E, [2023-10-04T22:
|
116
|
-
E, [2023-10-04T22:
|
117
|
-
E, [2023-10-04T22:
|
118
|
-
E, [2023-10-04T22:
|
119
|
-
E, [2023-10-04T22:
|
120
|
-
E, [2023-10-04T22:
|
121
|
-
E, [2023-10-04T22:
|
122
|
-
E, [2023-10-04T22:
|
69
|
+
E, [2023-10-04T22:27:59.006755 #928268] ERROR -- Kitchen: ----------------------
|
70
|
+
E, [2023-10-04T22:27:59.006784 #928268] ERROR -- Kitchen: ------Backtrace-------
|
71
|
+
E, [2023-10-04T22:27:59.006814 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:99:in `rescue in call'
|
72
|
+
E, [2023-10-04T22:27:59.006854 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:98:in `call'
|
73
|
+
E, [2023-10-04T22:27:59.006923 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:419:in `block in converge_action'
|
74
|
+
E, [2023-10-04T22:27:59.007042 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
|
75
|
+
E, [2023-10-04T22:27:59.007187 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:524:in `block in action'
|
76
|
+
E, [2023-10-04T22:27:59.007247 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
77
|
+
E, [2023-10-04T22:27:59.007389 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:523:in `action'
|
78
|
+
E, [2023-10-04T22:27:59.007452 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:414:in `converge_action'
|
79
|
+
E, [2023-10-04T22:27:59.007568 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
|
80
|
+
E, [2023-10-04T22:27:59.007624 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
|
81
|
+
E, [2023-10-04T22:27:59.007694 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:391:in `block in transition_to'
|
82
|
+
E, [2023-10-04T22:27:59.007774 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `each'
|
83
|
+
E, [2023-10-04T22:27:59.007809 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `transition_to'
|
84
|
+
E, [2023-10-04T22:27:59.007847 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:161:in `verify'
|
85
|
+
E, [2023-10-04T22:27:59.007889 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:190:in `block in test'
|
86
|
+
E, [2023-10-04T22:27:59.007935 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
87
|
+
E, [2023-10-04T22:27:59.007974 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:186:in `test'
|
88
|
+
E, [2023-10-04T22:27:59.008017 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `public_send'
|
89
|
+
E, [2023-10-04T22:27:59.008077 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
|
90
|
+
E, [2023-10-04T22:27:59.008115 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
|
91
|
+
E, [2023-10-04T22:27:59.008150 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
|
92
|
+
E, [2023-10-04T22:27:59.008212 #928268] ERROR -- Kitchen: ----End Backtrace-----
|
93
|
+
E, [2023-10-04T22:27:59.008253 #928268] ERROR -- Kitchen: -Composite Exception--
|
94
|
+
E, [2023-10-04T22:27:59.008283 #928268] ERROR -- Kitchen: Class: Kitchen::InstanceFailure
|
95
|
+
E, [2023-10-04T22:27:59.008319 #928268] ERROR -- Kitchen: Message: Converge failed on instance <default-centos-8>. Please see .kitchen/logs/default-centos-8.log for more details
|
96
|
+
E, [2023-10-04T22:27:59.008362 #928268] ERROR -- Kitchen: ----------------------
|
97
|
+
E, [2023-10-04T22:27:59.008404 #928268] ERROR -- Kitchen: ------Backtrace-------
|
98
|
+
E, [2023-10-04T22:27:59.008437 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:99:in `rescue in call'
|
99
|
+
E, [2023-10-04T22:27:59.008481 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:98:in `call'
|
100
|
+
E, [2023-10-04T22:27:59.008518 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:419:in `block in converge_action'
|
101
|
+
E, [2023-10-04T22:27:59.008552 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
|
102
|
+
E, [2023-10-04T22:27:59.008589 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:524:in `block in action'
|
103
|
+
E, [2023-10-04T22:27:59.008630 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
104
|
+
E, [2023-10-04T22:27:59.008668 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:523:in `action'
|
105
|
+
E, [2023-10-04T22:27:59.008706 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:414:in `converge_action'
|
106
|
+
E, [2023-10-04T22:27:59.008744 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
|
107
|
+
E, [2023-10-04T22:27:59.008787 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
|
108
|
+
E, [2023-10-04T22:27:59.008825 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:391:in `block in transition_to'
|
109
|
+
E, [2023-10-04T22:27:59.008867 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `each'
|
110
|
+
E, [2023-10-04T22:27:59.008898 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `transition_to'
|
111
|
+
E, [2023-10-04T22:27:59.008941 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:161:in `verify'
|
112
|
+
E, [2023-10-04T22:27:59.008978 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:190:in `block in test'
|
113
|
+
E, [2023-10-04T22:27:59.009038 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
114
|
+
E, [2023-10-04T22:27:59.009081 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:186:in `test'
|
115
|
+
E, [2023-10-04T22:27:59.009118 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `public_send'
|
116
|
+
E, [2023-10-04T22:27:59.009159 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
|
117
|
+
E, [2023-10-04T22:27:59.009190 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
|
118
|
+
E, [2023-10-04T22:27:59.009236 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
|
119
|
+
E, [2023-10-04T22:27:59.009268 #928268] ERROR -- Kitchen: ----End Backtrace-----
|
120
|
+
E, [2023-10-04T22:27:59.009299 #928268] ERROR -- Kitchen: ---Nested Exception---
|
121
|
+
E, [2023-10-04T22:27:59.009342 #928268] ERROR -- Kitchen: Class: Kitchen::ActionFailed
|
122
|
+
E, [2023-10-04T22:27:59.009372 #928268] ERROR -- Kitchen: Message: SSH exited (1) for command: [sh -c '
|
123
123
|
TEST_KITCHEN="1"; export TEST_KITCHEN
|
124
124
|
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
|
125
125
|
']
|
126
|
-
E, [2023-10-04T22:
|
127
|
-
E, [2023-10-04T22:
|
128
|
-
E, [2023-10-04T22:
|
129
|
-
E, [2023-10-04T22:
|
130
|
-
E, [2023-10-04T22:
|
131
|
-
E, [2023-10-04T22:
|
132
|
-
E, [2023-10-04T22:
|
133
|
-
E, [2023-10-04T22:
|
134
|
-
E, [2023-10-04T22:
|
135
|
-
E, [2023-10-04T22:
|
136
|
-
E, [2023-10-04T22:
|
137
|
-
E, [2023-10-04T22:
|
138
|
-
E, [2023-10-04T22:
|
139
|
-
E, [2023-10-04T22:
|
140
|
-
E, [2023-10-04T22:
|
141
|
-
E, [2023-10-04T22:
|
142
|
-
E, [2023-10-04T22:
|
143
|
-
E, [2023-10-04T22:
|
144
|
-
E, [2023-10-04T22:
|
145
|
-
E, [2023-10-04T22:
|
146
|
-
E, [2023-10-04T22:
|
147
|
-
E, [2023-10-04T22:
|
148
|
-
E, [2023-10-04T22:
|
149
|
-
E, [2023-10-04T22:
|
126
|
+
E, [2023-10-04T22:27:59.009414 #928268] ERROR -- Kitchen: ----------------------
|
127
|
+
E, [2023-10-04T22:27:59.009443 #928268] ERROR -- Kitchen: ------Backtrace-------
|
128
|
+
E, [2023-10-04T22:27:59.009478 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:99:in `rescue in call'
|
129
|
+
E, [2023-10-04T22:27:59.009515 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:98:in `call'
|
130
|
+
E, [2023-10-04T22:27:59.009559 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:419:in `block in converge_action'
|
131
|
+
E, [2023-10-04T22:27:59.009595 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
|
132
|
+
E, [2023-10-04T22:27:59.009866 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:524:in `block in action'
|
133
|
+
E, [2023-10-04T22:27:59.009903 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
134
|
+
E, [2023-10-04T22:27:59.009943 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:523:in `action'
|
135
|
+
E, [2023-10-04T22:27:59.009972 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:414:in `converge_action'
|
136
|
+
E, [2023-10-04T22:27:59.010003 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
|
137
|
+
E, [2023-10-04T22:27:59.010055 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
|
138
|
+
E, [2023-10-04T22:27:59.010094 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:391:in `block in transition_to'
|
139
|
+
E, [2023-10-04T22:27:59.010133 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `each'
|
140
|
+
E, [2023-10-04T22:27:59.010167 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `transition_to'
|
141
|
+
E, [2023-10-04T22:27:59.010201 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:161:in `verify'
|
142
|
+
E, [2023-10-04T22:27:59.010230 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:190:in `block in test'
|
143
|
+
E, [2023-10-04T22:27:59.010262 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
144
|
+
E, [2023-10-04T22:27:59.010290 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:186:in `test'
|
145
|
+
E, [2023-10-04T22:27:59.010315 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `public_send'
|
146
|
+
E, [2023-10-04T22:27:59.010425 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
|
147
|
+
E, [2023-10-04T22:27:59.010486 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
|
148
|
+
E, [2023-10-04T22:27:59.010533 #928268] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
|
149
|
+
E, [2023-10-04T22:27:59.010564 #928268] ERROR -- Kitchen: ----End Backtrace-----
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.0
|
@@ -0,0 +1,106 @@
|
|
1
|
+
module Context
|
2
|
+
module DeployHelpers
|
3
|
+
module ContextHelper
|
4
|
+
def present_localy?
|
5
|
+
Dir.exist?(context_folder)
|
6
|
+
end
|
7
|
+
|
8
|
+
def actual_working_directory?
|
9
|
+
Dir.pwd == context_folder
|
10
|
+
end
|
11
|
+
|
12
|
+
def move_folder(folder)
|
13
|
+
@context_folder = folder.include?(context_name) ? folder : File.join(folder, context_name)
|
14
|
+
end
|
15
|
+
|
16
|
+
def check_folder(folder)
|
17
|
+
FileUtils.mkdir_p(context_folder) unless present_localy?
|
18
|
+
end
|
19
|
+
|
20
|
+
def version
|
21
|
+
git_build(self)
|
22
|
+
log "Getting version info for #{context_folder} and version should be #{GitVersionBump.version(true)}"
|
23
|
+
Gem::Version.new(GitVersionBump.version(true))
|
24
|
+
end
|
25
|
+
|
26
|
+
def cycle
|
27
|
+
ruby_cycle(self)
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_context_successful?
|
31
|
+
log "Check if #{context_name} is install #{version}"
|
32
|
+
if gem_installed?(self)
|
33
|
+
log "Test context #{context_name} was successfully install on version #{version}"
|
34
|
+
true
|
35
|
+
else
|
36
|
+
log "Test context #{context_name} has failed to install #{version}"
|
37
|
+
false
|
38
|
+
end
|
39
|
+
cookbook_test(self)
|
40
|
+
end
|
41
|
+
|
42
|
+
def build
|
43
|
+
ruby_build(self)
|
44
|
+
cookbook_build(self)
|
45
|
+
check_folder get_context_file(self, 'contexts')
|
46
|
+
end
|
47
|
+
|
48
|
+
def commit
|
49
|
+
git_commit(self)
|
50
|
+
cookbook_install(self)
|
51
|
+
end
|
52
|
+
|
53
|
+
def release
|
54
|
+
log "\n\nRelease #{context_name} at version #{version}"
|
55
|
+
cookbook_push(self)
|
56
|
+
ruby_release(self)
|
57
|
+
git_release(self)
|
58
|
+
end
|
59
|
+
|
60
|
+
def install
|
61
|
+
ruby_install(self)
|
62
|
+
end
|
63
|
+
|
64
|
+
def clean
|
65
|
+
clean_folder(self, 'contexts')
|
66
|
+
ruby_clean(self)
|
67
|
+
cookbook_clean(self)
|
68
|
+
end
|
69
|
+
|
70
|
+
def show_new_version(level)
|
71
|
+
log "#{level} bump #{context_name} at newer version #{version}"
|
72
|
+
end
|
73
|
+
|
74
|
+
def patch_bump
|
75
|
+
GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true)}.#{GitVersionBump.patch_version(true) + 1}")
|
76
|
+
show_new_version('Patch')
|
77
|
+
end
|
78
|
+
|
79
|
+
def minor_bump
|
80
|
+
GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true) + 1}.0")
|
81
|
+
show_new_version('Minor')
|
82
|
+
end
|
83
|
+
|
84
|
+
def major_bump
|
85
|
+
GitVersionBump.tag_version("#{GitVersionBump.major_version(true) + 1}.0.0")
|
86
|
+
show_new_version('Major')
|
87
|
+
end
|
88
|
+
|
89
|
+
def wait_until_release_available
|
90
|
+
wait_until_release_available unless is_present_publicly?
|
91
|
+
end
|
92
|
+
|
93
|
+
def is_present_publicly?
|
94
|
+
ruby_check_if_available_public(self)
|
95
|
+
end
|
96
|
+
|
97
|
+
def new_update_available?
|
98
|
+
git_update_available?(self)
|
99
|
+
end
|
100
|
+
|
101
|
+
def ready_for_major_update?
|
102
|
+
false
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module Context
|
2
2
|
module DeployHelpers
|
3
3
|
module CookbookHelper
|
4
|
+
def cookbook_version(context)
|
5
|
+
context.version.canonical_segments[0..2].join('.')
|
6
|
+
end
|
7
|
+
|
4
8
|
def chef(context, commands)
|
5
9
|
context.execute_command(%w(chef) + commands)
|
6
10
|
end
|
@@ -35,6 +39,7 @@ module Context
|
|
35
39
|
context.git_build(context)
|
36
40
|
Dir.chdir File.dirname(context.context_folder)
|
37
41
|
context.generate_cookbook(context, [context.context_name])
|
42
|
+
context.set_cookbook_version(context)
|
38
43
|
Dir.chdir context.context_folder
|
39
44
|
end
|
40
45
|
|
@@ -74,6 +79,11 @@ module Context
|
|
74
79
|
context.log "\n\nCleaningcookbook in folder #{Dir.pwd}\nAnd context #{context.context_name} is created in folder #{context.context_folder} at version #{context.version}"
|
75
80
|
clean_file(context, 'Policyfile.lock.json')
|
76
81
|
end
|
82
|
+
|
83
|
+
def set_cookbook_version(context)
|
84
|
+
context.git_build(context)
|
85
|
+
File.write(context.get_context_file(context, 'VERSION'), context.cookbook_version(context).strip)
|
86
|
+
end
|
77
87
|
end
|
78
88
|
end
|
79
89
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require_relative 'helpers/command'
|
2
2
|
require_relative 'deploy/deployer'
|
3
3
|
require_relative 'deploy/git'
|
4
|
+
require_relative 'deploy/context'
|
4
5
|
|
5
6
|
|
6
7
|
module Context
|
@@ -8,6 +9,7 @@ module Context
|
|
8
9
|
include CommandHelper
|
9
10
|
include DeployHelpers::DeployerHelper
|
10
11
|
include DeployHelpers::GitHelper
|
12
|
+
include DeployHelpers::ContextHelper
|
11
13
|
|
12
14
|
attr_reader :context_name
|
13
15
|
attr_reader :context_folder
|
@@ -16,106 +18,5 @@ module Context
|
|
16
18
|
@context_name = context_name
|
17
19
|
@context_folder = move_folder(deploycontext_folder)
|
18
20
|
end
|
19
|
-
|
20
|
-
def present_localy?
|
21
|
-
Dir.exist?(context_folder)
|
22
|
-
end
|
23
|
-
|
24
|
-
def actual_working_directory?
|
25
|
-
Dir.pwd == context_folder
|
26
|
-
end
|
27
|
-
|
28
|
-
def move_folder(folder)
|
29
|
-
@context_folder = folder.include?(context_name) ? folder : File.join(folder, context_name)
|
30
|
-
end
|
31
|
-
|
32
|
-
def check_folder(folder)
|
33
|
-
FileUtils.mkdir_p(context_folder) unless present_localy?
|
34
|
-
end
|
35
|
-
|
36
|
-
def version
|
37
|
-
git_build(self)
|
38
|
-
log "Getting version info for #{context_folder} and version should be #{GitVersionBump.version(true)}"
|
39
|
-
Gem::Version.new(GitVersionBump.version(true))
|
40
|
-
end
|
41
|
-
|
42
|
-
def cycle
|
43
|
-
ruby_cycle(self)
|
44
|
-
end
|
45
|
-
|
46
|
-
def test_context_successful?
|
47
|
-
log "Check if #{context_name} is install #{version}"
|
48
|
-
if gem_installed?(self)
|
49
|
-
log "Test context #{context_name} was successfully install on version #{version}"
|
50
|
-
true
|
51
|
-
else
|
52
|
-
log "Test context #{context_name} has failed to install #{version}"
|
53
|
-
false
|
54
|
-
end
|
55
|
-
cookbook_test(self)
|
56
|
-
end
|
57
|
-
|
58
|
-
def build
|
59
|
-
ruby_build(self)
|
60
|
-
cookbook_build(self)
|
61
|
-
check_folder get_context_file(self, 'contexts')
|
62
|
-
end
|
63
|
-
|
64
|
-
def commit
|
65
|
-
git_commit(self)
|
66
|
-
cookbook_install(self)
|
67
|
-
end
|
68
|
-
|
69
|
-
def release
|
70
|
-
log "\n\nRelease #{context_name} at version #{version}"
|
71
|
-
cookbook_push(self)
|
72
|
-
ruby_release(self)
|
73
|
-
git_release(self)
|
74
|
-
end
|
75
|
-
|
76
|
-
def install
|
77
|
-
ruby_install(self)
|
78
|
-
end
|
79
|
-
|
80
|
-
def clean
|
81
|
-
clean_folder(self, 'contexts')
|
82
|
-
ruby_clean(self)
|
83
|
-
cookbook_clean(self)
|
84
|
-
end
|
85
|
-
|
86
|
-
def show_new_version(level)
|
87
|
-
log "#{level} bump #{context_name} at newer version #{version}"
|
88
|
-
end
|
89
|
-
|
90
|
-
def patch_bump
|
91
|
-
GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true)}.#{GitVersionBump.patch_version(true) + 1}")
|
92
|
-
show_new_version('Patch')
|
93
|
-
end
|
94
|
-
|
95
|
-
def minor_bump
|
96
|
-
GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true) + 1}.0")
|
97
|
-
show_new_version('Minor')
|
98
|
-
end
|
99
|
-
|
100
|
-
def major_bump
|
101
|
-
GitVersionBump.tag_version("#{GitVersionBump.major_version(true) + 1}.0.0")
|
102
|
-
show_new_version('Major')
|
103
|
-
end
|
104
|
-
|
105
|
-
def wait_until_release_available
|
106
|
-
wait_until_release_available unless is_present_publicly?
|
107
|
-
end
|
108
|
-
|
109
|
-
def is_present_publicly?
|
110
|
-
ruby_check_if_available_public(self)
|
111
|
-
end
|
112
|
-
|
113
|
-
def new_update_available?
|
114
|
-
git_update_available?(self)
|
115
|
-
end
|
116
|
-
|
117
|
-
def ready_for_major_update?
|
118
|
-
false
|
119
|
-
end
|
120
21
|
end
|
121
22
|
end
|
data/metadata.rb
CHANGED
@@ -6,7 +6,8 @@ maintainer 'Jimmy Provencher'
|
|
6
6
|
maintainer_email 'jimmy.provencher@hotmail.ca'
|
7
7
|
license 'All Rights Reserved'
|
8
8
|
description 'Installs/Configures deploy-context'
|
9
|
-
version "#{GVB.major_version(true)}.#{GVB.minor_version(true)}.#{GVB.patch_version(true)}"
|
9
|
+
# version "#{GVB.major_version(true)}.#{GVB.minor_version(true)}.#{GVB.patch_version(true)}"
|
10
|
+
version File.read('VERSION')
|
10
11
|
chef_version '>= 16.0'
|
11
12
|
|
12
13
|
# The `issues_url` points to the location where issues for this cookbook are
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy-context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8
|
4
|
+
version: 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Provencher
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- Policyfile.rb
|
99
99
|
- README.md
|
100
100
|
- Rakefile
|
101
|
+
- VERSION
|
101
102
|
- bin/deploy-context
|
102
103
|
- chefignore
|
103
104
|
- compliance/README.md
|
@@ -111,6 +112,7 @@ files:
|
|
111
112
|
- libraries/context-manager.rb
|
112
113
|
- libraries/deploy-context.rb
|
113
114
|
- libraries/deploy-context/deploy.rb
|
115
|
+
- libraries/deploy-context/deploy/context.rb
|
114
116
|
- libraries/deploy-context/deploy/cookbook.rb
|
115
117
|
- libraries/deploy-context/deploy/cucumber.rb
|
116
118
|
- libraries/deploy-context/deploy/deployer.rb
|
metadata.gz.sig
CHANGED
Binary file
|