kitchen-habitat 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/kitchen-habitat/version.rb +1 -1
- data/lib/kitchen/provisioner/habitat.rb +7 -5
- 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: a53b0e7ecbcbd344079d5a0e3b57c6c1391724d34f4eea6676ad2dcda50551de
|
4
|
+
data.tar.gz: 2fe775cc541a35c9434642e325e379772c40231c6bdce06c24874851cf5a7b19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0788b1af617b81b2847b712c9500069eb8111b5443cb7a6af696fe1877eb00197f0719cb1cb9ccf81f086323c441f8f6c861b225c458cb15f2518f80c83da7f
|
7
|
+
data.tar.gz: 61752d3d8b85cb1e72267c911d69f51c07d30a4e599bfcab179c358b689714ba2bd155963b24730427f34678f16b4e26172584aab028a2d0dcfeef16763c8d72
|
data/README.md
CHANGED
@@ -51,6 +51,9 @@ You'll need the test-kitchen & kitchen-habitat gems installed in your system, al
|
|
51
51
|
* `hab_sup_peer`
|
52
52
|
* IP and port (e.g. `192.168.1.86:9010`) of the supervisor of which to connect to join the ring.
|
53
53
|
* Default is `[]`
|
54
|
+
* `hab_sup_ring`
|
55
|
+
* Ring key name
|
56
|
+
* Default is `nil`
|
54
57
|
|
55
58
|
### Package Settings
|
56
59
|
|
@@ -30,6 +30,7 @@ module Kitchen
|
|
30
30
|
default_config :hab_sup_peer, []
|
31
31
|
default_config :hab_sup_bind, []
|
32
32
|
default_config :hab_sup_group, nil
|
33
|
+
default_config :hab_sup_ring, nil
|
33
34
|
|
34
35
|
# hab-sup service options
|
35
36
|
default_config :install_latest_artifact, false
|
@@ -244,11 +245,11 @@ module Kitchen
|
|
244
245
|
else
|
245
246
|
return
|
246
247
|
end
|
247
|
-
|
248
|
-
config[:package_origin] =
|
249
|
-
config[:package_name] =
|
250
|
-
config[:package_version] =
|
251
|
-
config[:package_release] =
|
248
|
+
ident = artifact_name_to_package_ident_regex.match(artifact_name)
|
249
|
+
config[:package_origin] = ident["origin"]
|
250
|
+
config[:package_name] = ident["name"]
|
251
|
+
config[:package_version] = ident["version"]
|
252
|
+
config[:package_release] = ident["release"]
|
252
253
|
|
253
254
|
artifact_path = File.join(File.join(config[:root_path], "results"), artifact_name)
|
254
255
|
"sudo -E hab pkg install #{artifact_path}"
|
@@ -324,6 +325,7 @@ module Kitchen
|
|
324
325
|
options += config[:hab_sup_bind].map { |b| " --bind #{b}" }.join(" ") if config[:hab_sup_bind].any?
|
325
326
|
options += config[:hab_sup_peer].map { |p| " --peer #{p}" }.join(" ") if config[:hab_sup_peer].any?
|
326
327
|
options += " --group #{config[:hab_sup_group]}" unless config[:hab_sup_group].nil?
|
328
|
+
options += " --ring #{config[:hab_sup_ring]}" unless config[:hab_sup_ring].nil?
|
327
329
|
options += " --topology #{config[:service_topology]}" unless config[:service_topology].nil?
|
328
330
|
options += " --strategy #{config[:service_update_strategy]}" unless config[:service_update_strategy].nil?
|
329
331
|
options += " --channel #{config[:channel]}" unless config[:channel].nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-habitat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Murawski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|