kitchen-gogetkitchen 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.cane +0 -0
- data/.gitignore +17 -0
- data/.tailor +4 -0
- data/.travis.yml +11 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +3 -0
- data/LICENSE +15 -0
- data/README.md +68 -0
- data/Rakefile +21 -0
- data/kitchen-gogetkitchen.gemspec +32 -0
- data/lib/kitchen/driver/gogetkitchen.rb +51 -0
- data/lib/kitchen/driver/gogetkitchen_version.rb +26 -0
- metadata +183 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 41da9d59651652c21009f6c33c5fbba3795b9f8d
|
4
|
+
data.tar.gz: 2f11fedb110d3511d069087d997c746a20c17d47
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 14b5db06c0de4249a63ef9280012fa01e4e445f0ba5677251100b89b88484cf462da726bcbe880ad0f8bbabef4cc10c61b00a2baa61ee9dafd1a17898db163a6
|
7
|
+
data.tar.gz: 5942eae198a28f75c7b44562ce75dd58b7621215f6292c94e1b706d550d8fc7c77d687fc6de0296925ea6a2f0809a0101c7c221c3c05e245c05c6593988da65e
|
data/.cane
ADDED
File without changes
|
data/.gitignore
ADDED
data/.tailor
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Author:: Don Draper (<donoldfashioned@gmail.com>)
|
2
|
+
|
3
|
+
Copyright (C) 2017, Don Draper
|
4
|
+
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
you may not use this file except in compliance with the License.
|
7
|
+
You may obtain a copy of the License at
|
8
|
+
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
See the License for the specific language governing permissions and
|
15
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# <a name="title"></a> Kitchen::Gogetkitchen
|
2
|
+
|
3
|
+
A Test Kitchen Driver for Gogetkitchen.
|
4
|
+
|
5
|
+
## <a name="requirements"></a> Requirements
|
6
|
+
|
7
|
+
**TODO:** document any software or library prerequisites that are required to
|
8
|
+
use this driver. Implement the `#verify_dependencies` method in your Driver
|
9
|
+
class to enforce these requirements in code, if possible.
|
10
|
+
|
11
|
+
## <a name="installation"></a> Installation and Setup
|
12
|
+
|
13
|
+
Please read the [Driver usage][driver_usage] page for more details.
|
14
|
+
|
15
|
+
$ export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
|
16
|
+
|
17
|
+
$ kitchen init -D kitchen-gogetit -P chef_zero
|
18
|
+
|
19
|
+
## <a name="config"></a> Configuration
|
20
|
+
|
21
|
+
**TODO:** Write descriptions of all configuration options
|
22
|
+
|
23
|
+
### <a name="config-require-chef-omnibus"></a> require\_chef\_omnibus
|
24
|
+
|
25
|
+
Determines whether or not a Chef [Omnibus package][chef_omnibus_dl] will be
|
26
|
+
installed. There are several different behaviors available:
|
27
|
+
|
28
|
+
* `true` - the latest release will be installed. Subsequent converges
|
29
|
+
will skip re-installing if chef is present.
|
30
|
+
* `latest` - the latest release will be installed. Subsequent converges
|
31
|
+
will always re-install even if chef is present.
|
32
|
+
* `<VERSION_STRING>` (ex: `10.24.0`) - the desired version string will
|
33
|
+
be passed the the install.sh script. Subsequent converges will skip if
|
34
|
+
the installed version and the desired version match.
|
35
|
+
* `false` or `nil` - no chef is installed.
|
36
|
+
|
37
|
+
The default value is unset, or `nil`.
|
38
|
+
|
39
|
+
## <a name="development"></a> Development
|
40
|
+
|
41
|
+
* Source hosted at [GitHub][repo]
|
42
|
+
* Report issues/questions/feature requests on [GitHub Issues][issues]
|
43
|
+
|
44
|
+
Pull requests are very welcome! Make sure your patches are well tested.
|
45
|
+
Ideally create a topic branch for every separate change you make. For
|
46
|
+
example:
|
47
|
+
|
48
|
+
1. Fork the repo
|
49
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
51
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
52
|
+
5. Create new Pull Request
|
53
|
+
|
54
|
+
## <a name="authors"></a> Authors
|
55
|
+
|
56
|
+
Created and maintained by [Don Draper][author] (<donoldfashioned@gmail.com>)
|
57
|
+
|
58
|
+
## <a name="license"></a> License
|
59
|
+
|
60
|
+
Apache 2.0 (see [LICENSE][license])
|
61
|
+
|
62
|
+
|
63
|
+
[author]: https://github.com/enter-github-user
|
64
|
+
[issues]: https://github.com/enter-github-user/kitchen-gogetkitchen/issues
|
65
|
+
[license]: https://github.com/enter-github-user/kitchen-gogetkitchen/blob/master/LICENSE
|
66
|
+
[repo]: https://github.com/enter-github-user/kitchen-gogetkitchen
|
67
|
+
[driver_usage]: http://docs.kitchen-ci.org/drivers/usage
|
68
|
+
[chef_omnibus_dl]: http://www.chef.io/chef/install/
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require 'cane/rake_task'
|
3
|
+
require 'tailor/rake_task'
|
4
|
+
|
5
|
+
desc "Run cane to check quality metrics"
|
6
|
+
Cane::RakeTask.new do |cane|
|
7
|
+
cane.canefile = './.cane'
|
8
|
+
end
|
9
|
+
|
10
|
+
Tailor::RakeTask.new
|
11
|
+
|
12
|
+
desc "Display LOC stats"
|
13
|
+
task :stats do
|
14
|
+
puts "\n## Production Code Stats"
|
15
|
+
sh "countloc -r lib"
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Run all quality tasks"
|
19
|
+
task :quality => [:cane, :tailor, :stats]
|
20
|
+
|
21
|
+
task :default => [:quality]
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'kitchen/driver/gogetkitchen_version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'kitchen-gogetkitchen'
|
8
|
+
spec.version = Kitchen::Driver::GOGETKITCHEN_VERSION
|
9
|
+
spec.authors = ['Don Draper']
|
10
|
+
spec.email = ['donoldfashioned@gmail.com']
|
11
|
+
spec.summary = %q{A kitchen driver based on Gogetit.}
|
12
|
+
spec.description = %q{A kitchen driver based on Gogetit that has abilities to control MAAS, Libvirt and LXD.}
|
13
|
+
spec.homepage = 'https://github.com/itisnotdone/kitchen-gogetit'
|
14
|
+
spec.license = 'Apache 2.0'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = []
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_dependency 'test-kitchen', '~> 1.16.0'
|
22
|
+
spec.add_dependency 'gogetit', '~> 0.1.4'
|
23
|
+
spec.add_dependency 'pry', '~> 0.10.4'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'pry', '~> 0.10.4'
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
27
|
+
spec.add_development_dependency 'rake'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'cane'
|
30
|
+
spec.add_development_dependency 'tailor'
|
31
|
+
spec.add_development_dependency 'countloc'
|
32
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Author:: Don Draper (<donoldfashioned@gmail.com>)
|
4
|
+
#
|
5
|
+
# Copyright (C) 2017, Don Draper
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
|
19
|
+
require 'kitchen/driver/gogetkitchen_version'
|
20
|
+
require 'kitchen'
|
21
|
+
require 'gogetit'
|
22
|
+
require 'pry'
|
23
|
+
|
24
|
+
module Kitchen
|
25
|
+
|
26
|
+
module Driver
|
27
|
+
|
28
|
+
# Gogetkitchen driver for Kitchen.
|
29
|
+
#
|
30
|
+
# @author Don Draper <donoldfashioned@gmail.com>
|
31
|
+
class GogetKitchen < Kitchen::Driver::Base
|
32
|
+
kitchen_driver_api_version 2
|
33
|
+
plugin_version Kitchen::Driver::GOGETKITCHEN_VERSION
|
34
|
+
|
35
|
+
default_config :username, 'ubuntu'
|
36
|
+
default_config :provider
|
37
|
+
default_config :template
|
38
|
+
|
39
|
+
binding.pry
|
40
|
+
|
41
|
+
def create(state)
|
42
|
+
binding.pry
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
def destroy(state)
|
47
|
+
binding.pry
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Author:: Don Draper (<donoldfashioned@gmail.com>)
|
4
|
+
#
|
5
|
+
# Copyright (C) 2017, Don Draper
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
|
19
|
+
module Kitchen
|
20
|
+
|
21
|
+
module Driver
|
22
|
+
|
23
|
+
# Version string for Gogetkitchen Kitchen driver
|
24
|
+
GOGETKITCHEN_VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,183 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kitchen-gogetkitchen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Don Draper
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: test-kitchen
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.16.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.16.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: gogetit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.4
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.10.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.10.4
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.10.4
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.3'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: cane
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: tailor
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: countloc
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: A kitchen driver based on Gogetit that has abilities to control MAAS,
|
140
|
+
Libvirt and LXD.
|
141
|
+
email:
|
142
|
+
- donoldfashioned@gmail.com
|
143
|
+
executables: []
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".cane"
|
148
|
+
- ".gitignore"
|
149
|
+
- ".tailor"
|
150
|
+
- ".travis.yml"
|
151
|
+
- CHANGELOG.md
|
152
|
+
- Gemfile
|
153
|
+
- LICENSE
|
154
|
+
- README.md
|
155
|
+
- Rakefile
|
156
|
+
- kitchen-gogetkitchen.gemspec
|
157
|
+
- lib/kitchen/driver/gogetkitchen.rb
|
158
|
+
- lib/kitchen/driver/gogetkitchen_version.rb
|
159
|
+
homepage: https://github.com/itisnotdone/kitchen-gogetit
|
160
|
+
licenses:
|
161
|
+
- Apache 2.0
|
162
|
+
metadata: {}
|
163
|
+
post_install_message:
|
164
|
+
rdoc_options: []
|
165
|
+
require_paths:
|
166
|
+
- lib
|
167
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
requirements: []
|
178
|
+
rubyforge_project:
|
179
|
+
rubygems_version: 2.6.11
|
180
|
+
signing_key:
|
181
|
+
specification_version: 4
|
182
|
+
summary: A kitchen driver based on Gogetit.
|
183
|
+
test_files: []
|