chake 0.13 → 0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +7 -0
- data/README.md +11 -1
- data/lib/chake.rb +6 -6
- data/lib/chake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fc582f75bf337561db2a9fdfaf16165cfe51410
|
4
|
+
data.tar.gz: 4bd1f424fa51b0e0fa3abdb1b9d76feedb36398a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb194cf2be96b080fbf009494f9bc4c8fa31e040d43a21364709128b55dd358240e0cd9f28f1e2606a65488c3637afade70ff9810a6b6e662bc974d1c16f40ec
|
7
|
+
data.tar.gz: 53bf917170d3c9ad4734051a6589fac9ab09da860fbadd7080f8247efcddf0ec7da13ba18f0ddd50ad9728fd73cbc90a7d6725372b347729b67778491adaafc4
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -118,6 +118,16 @@ $ rake check
|
|
118
118
|
|
119
119
|
## Applying cookbooks
|
120
120
|
|
121
|
+
Note that by default all tasks that apply to all hosts will run in parallel,
|
122
|
+
using rake's support for multitasks. If for some reason you need to prevent
|
123
|
+
that, you can pass `-j1` (or --jobs=1`) in the rake invocation. Note that rake
|
124
|
+
will by only run N+4 tasks in parallel, where N is the number of cores on the
|
125
|
+
machine you are running it in. If you have more than N+4 hosts and want all of
|
126
|
+
them to be handled in parallel, you might want o pass `-j` (or `--jobs`),
|
127
|
+
without any number so that rake will have no limits on the number of tasks to
|
128
|
+
perform in parallel.
|
129
|
+
|
130
|
+
|
121
131
|
To apply the configuration to all nodes, run
|
122
132
|
|
123
133
|
```bash
|
@@ -265,7 +275,7 @@ local://thunderbolt:
|
|
265
275
|
```
|
266
276
|
|
267
277
|
To apply the configuration to the local host, you can use the conventional
|
268
|
-
`rake
|
278
|
+
`rake converge:thunderbolt`, or the special target `rake local`.
|
269
279
|
|
270
280
|
When converging all nodes, `chake` will skip nodes that are declared with the
|
271
281
|
`local://` backend and whose hostname does not match the hostname in the
|
data/lib/chake.rb
CHANGED
@@ -289,23 +289,23 @@ task :recipe_input, :recipe do |task,args|
|
|
289
289
|
end
|
290
290
|
|
291
291
|
desc "upload to all nodes"
|
292
|
-
|
292
|
+
multitask :upload => $nodes.map { |node| "upload:#{node.hostname}" }
|
293
293
|
|
294
294
|
desc "bootstrap all nodes"
|
295
|
-
|
295
|
+
multitask :bootstrap => $nodes.map { |node| "bootstrap:#{node.hostname}" }
|
296
296
|
|
297
297
|
desc "converge all nodes (default)"
|
298
|
-
|
298
|
+
multitask "converge" => $nodes.map { |node| "converge:#{node.hostname}" }
|
299
299
|
|
300
300
|
desc "Apply <recipe> on all nodes"
|
301
|
-
|
301
|
+
multitask "apply", [:recipe] => $nodes.map { |node| "apply:#{node.hostname}" }
|
302
302
|
|
303
303
|
desc "run <command> on all nodes"
|
304
|
-
|
304
|
+
multitask :run, [:command] => $nodes.map { |node| "run:#{node.hostname}" }
|
305
305
|
|
306
306
|
task :default => :converge
|
307
307
|
|
308
308
|
desc 'checks connectivity and setup on all nodes'
|
309
|
-
|
309
|
+
multitask :check => ($nodes.map { |node| "check:#{node.hostname}" }) do
|
310
310
|
puts "✓ all hosts OK"
|
311
311
|
end
|
data/lib/chake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.14'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Terceiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|