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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8fc862c8ed788875141bce93f430c7d2f9eb4b4a930fdbdde7458e27d0862da
4
- data.tar.gz: 7a12b10d7eee2d8314d2804a3521df7bd68d1d41fea5a3eb2b2a05d42fb39dbe
3
+ metadata.gz: 2ba8c808cb8e87b511eb5e12aea851de71c9b80010f7a3b0c6fca66784865c5c
4
+ data.tar.gz: d74b9ce539d89aa442d111809f98aca3f6006f6c3d013d1140a43aee2d167341
5
5
  SHA512:
6
- metadata.gz: 1a1488d72243c55e80c40adf2a75622d9b29b50922de6a0701b5bd0ea5810d73740ee741c4cfd239f9fd42396db4091f636dc5fbedd2bb8ad94b24beaa394194
7
- data.tar.gz: 585d83701bdbcd782b16321e04d68d259c3e10a6edb2b952dca51f6dbfda4a9ef9ca303f0eda428185843f02d0ac511144d36d3633e51e630dd96158a5e55180
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
- template: default
40
- options:
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, options)
47
+ result = provider.deploy(instance.name, config)
56
48
  else
57
- result = provider.create(instance.name, options)
49
+ result = provider.create(instance.name, config)
58
50
  end
59
51
 
60
52
  when Gogetit::GogetLXD
61
- result = provider.create(instance.name, options)
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
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Gogetkitchen Kitchen driver
24
- GOGETKITCHEN_VERSION = "0.4.0"
24
+ GOGETKITCHEN_VERSION = "0.4.1"
25
25
  end
26
26
  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.0
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-05 00:00:00.000000000 Z
11
+ date: 2018-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen