kitchen-gogetkitchen 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 2bb712cab9e165c8d9a9c4477350b7aec73e05d1
4
- data.tar.gz: 790dea760d847718ddc07ac5cf581a3c845caca3
3
+ metadata.gz: 68a37578756a8d1d0b6a77249174601ebc56a0ec
4
+ data.tar.gz: d922805ac5c7ced5381d01add7969a74688cf5a8
5
5
  SHA512:
6
- metadata.gz: 60643336e4c87552832abea846756e100ecfb7ea41d371e40dc2cd740b1dee7186877d8421e5cf32404615a3e5095c8248e3d9981fd9bf3afefc16d1b00a50bf
7
- data.tar.gz: c38e598cc4a3407e7c79907f0e94963511bce6ab02df42a3e3d0b54e442ef00bc20b3c7cdd9829a3e653c85463ab4fbf0ae8ffaa07e9f4dfa8d484f0779fed30
6
+ metadata.gz: fbc511ab5d3e1113d543fbafd7ffa989665988fe06c0ab95ac8e58a1bffc4683a41e66773573d7980e464c6f7ca4f8d4a4593e63f12d0fa3303900188bdac997
7
+ data.tar.gz: 0e107e0131832f1e38125901e3eab0bc9f8d1a4ffad6918567b4ea8f8bc4b16e35c8dcb2dabc53ceef9e7ec974af537a37a02f796bd6b11a97474806ad5ef41d
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # <a name="title"></a> Kitchen::Gogetkitchen
2
2
 
3
3
  A Test Kitchen Driver for Gogetkitchen.
4
+ (This is still under development with Gogetit driver itself.)
4
5
 
5
6
  ## <a name="requirements"></a> Requirements
6
7
 
@@ -8,17 +9,53 @@ A Test Kitchen Driver for Gogetkitchen.
8
9
  use this driver. Implement the `#verify_dependencies` method in your Driver
9
10
  class to enforce these requirements in code, if possible.
10
11
 
12
+ What are needed when using Gogetit library are needed as well
13
+ Since this is devised to use Gogetit as a kitchen driver.
14
+ Please refer following link before begin.
15
+ https://github.com/itisnotdone/gogetit
16
+
11
17
  ## <a name="installation"></a> Installation and Setup
12
18
 
13
19
  Please read the [Driver usage][driver_usage] page for more details.
14
20
 
21
+ ```bash
22
+
15
23
  $ export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
16
24
 
17
25
  $ kitchen init -D kitchen-gogetit -P chef_zero
18
26
 
27
+ ```
19
28
  ## <a name="config"></a> Configuration
20
29
 
21
- **TODO:** Write descriptions of all configuration options
30
+ ```yaml
31
+
32
+ ---
33
+ driver:
34
+ name: gogetkitchen
35
+
36
+ provisioner:
37
+ name: chef_zero
38
+
39
+ transport:
40
+ ssh_key: <%= Dir.home + '/.ssh/id_rsa' %>
41
+
42
+ platforms:
43
+ - name: lxc01
44
+ driver:
45
+ provider: lxd
46
+ template: default
47
+ - name: kvm01
48
+ driver:
49
+ provider: libvirt
50
+ template: default
51
+
52
+ suites:
53
+ - name: default
54
+ run_list:
55
+ - recipe[all_nodes::default]
56
+ attributes:
57
+
58
+ ```
22
59
 
23
60
  ### <a name="config-require-chef-omnibus"></a> require\_chef\_omnibus
24
61
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'test-kitchen', '~> 1.16.0'
22
- spec.add_dependency 'gogetit', '~> 0.1.4'
22
+ spec.add_dependency 'gogetit', '~> 0.1.5'
23
23
  spec.add_dependency 'pry', '~> 0.10.4'
24
24
 
25
25
  spec.add_development_dependency 'pry', '~> 0.10.4'
@@ -36,12 +36,15 @@ module Kitchen
36
36
  default_config :provider
37
37
  default_config :template
38
38
 
39
+ Gogetit.config[:consumer] = 'kitchen'
40
+
39
41
  def create(state)
40
42
  provider = choose_provider(config[:provider])
41
43
  provider.create(instance.name)
42
44
  domain = Gogetit.maas.get_domain
43
45
  state[:hostname] = instance.name + '.' + domain
44
46
  state[:username] = config[:username]
47
+ info 'Waiting for the new domain to be available..'
45
48
  wait_until_available(instance.name)
46
49
 
47
50
  info 'Waiting for SSH..'
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Gogetkitchen Kitchen driver
24
- GOGETKITCHEN_VERSION = "0.1.1"
24
+ GOGETKITCHEN_VERSION = "0.1.2"
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Draper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-30 00:00:00.000000000 Z
11
+ date: 2017-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.4
33
+ version: 0.1.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.4
40
+ version: 0.1.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement