kitchen-gogetkitchen 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/kitchen/driver/gogetkitchen.rb +4 -12
- data/lib/kitchen/driver/gogetkitchen_version.rb +1 -1
- 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: 2ba8c808cb8e87b511eb5e12aea851de71c9b80010f7a3b0c6fca66784865c5c
|
4
|
+
data.tar.gz: d74b9ce539d89aa442d111809f98aca3f6006f6c3d013d1140a43aee2d167341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4beb9b8b43352384f07a1d3233e53467f53bbf361d220c5cb1d3c38b1f6879d41aa4307701514055e9dd92ce497d5cd8b10ace9621716c658ecfbf1fdc13703
|
7
|
+
data.tar.gz: 01bd17b847b27c2f9f0abda1157ceed71a2d06ec3664a338ea46097f68c635b0be3c64067948a7a813f68503d7a5434250098363a50ccec5b4cae08b0e8e95f9
|
data/README.md
CHANGED
@@ -36,9 +36,8 @@ platforms:
|
|
36
36
|
- name: lxc01
|
37
37
|
driver:
|
38
38
|
provider: lxd
|
39
|
-
|
40
|
-
|
41
|
-
maas-on-lxc: true
|
39
|
+
alias: default
|
40
|
+
maas-on-lxc: true
|
42
41
|
|
43
42
|
suites:
|
44
43
|
- name: default
|
@@ -65,6 +64,7 @@ platforms:
|
|
65
64
|
- name: kvm01
|
66
65
|
driver:
|
67
66
|
provider: kvm
|
67
|
+
distro: bionic
|
68
68
|
|
69
69
|
suites:
|
70
70
|
- name: default
|
@@ -74,9 +74,9 @@ suites:
|
|
74
74
|
|
75
75
|
```
|
76
76
|
## Provider specific behaviors
|
77
|
-
For KVM(Libvirt)
|
77
|
+
### For KVM(Libvirt)
|
78
78
|
- It will always use `deploy`/`release` pair once `create`d.
|
79
|
-
For LXD
|
79
|
+
### For LXD
|
80
80
|
- It is able to convey `options` which Gogetit LXD provider comsumes.
|
81
81
|
|
82
82
|
|
@@ -38,27 +38,19 @@ module Kitchen
|
|
38
38
|
Gogetit.config[:consumer] = 'kitchen'
|
39
39
|
|
40
40
|
def create(state)
|
41
|
-
options = {}
|
42
|
-
|
43
|
-
# for LXD
|
44
|
-
options['alias'] = config[:template] if config[:template]
|
45
|
-
|
46
|
-
# to receive new other options
|
47
|
-
options.merge!(config[:options]) if config[:options]
|
48
|
-
|
49
41
|
provider = choose_provider(config[:provider])
|
50
42
|
|
51
43
|
case provider
|
52
44
|
when Gogetit::GogetLibvirt
|
53
45
|
|
54
46
|
if Gogetit.maas.machine_exists?(instance.name)
|
55
|
-
result = provider.deploy(instance.name,
|
47
|
+
result = provider.deploy(instance.name, config)
|
56
48
|
else
|
57
|
-
result = provider.create(instance.name,
|
49
|
+
result = provider.create(instance.name, config)
|
58
50
|
end
|
59
51
|
|
60
52
|
when Gogetit::GogetLXD
|
61
|
-
result = provider.create(instance.name,
|
53
|
+
result = provider.create(instance.name, config)
|
62
54
|
end
|
63
55
|
|
64
56
|
domain = Gogetit.maas.get_domain
|
@@ -91,7 +83,7 @@ module Kitchen
|
|
91
83
|
when 'lxd'
|
92
84
|
Gogetit.lxd
|
93
85
|
when 'kvm'
|
94
|
-
# kvm externally but libvirt internally
|
86
|
+
# let's call it kvm externally but libvirt internally
|
95
87
|
# because gogetit actually handles libvirtd
|
96
88
|
Gogetit.libvirt
|
97
89
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-gogetkitchen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Don Draper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|