kitchen-terraform 3.1.0 → 3.2.0

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: 6bed93c8d3edcaa9b632a77af795ef201b1fb3f38851ad1f7b64bccaf0a562e8
4
- data.tar.gz: 1276013ec6e8e44701db466c2f1fec4160040c55d2fdeade8b5c9819b3c1dc96
3
+ metadata.gz: 7e4f5a91dd079948f39c823124a9abaa9373c1d75f820ab1361e35fdb2ad9a9a
4
+ data.tar.gz: c3b49fd224514f162064c83f3efa27eab7682822f667dc6fe7f79968b9e1e2e6
5
5
  SHA512:
6
- metadata.gz: 85a1e4484b097b067041df44ef7a6e1d90ea57734df2e3f0ab45cb07d8a035da4405013ed76fa1928dafc7a65ac27a20877dfee8f933d6ecefd21db1dfbacc92
7
- data.tar.gz: 4cbcc7946c975250266fa0dd725a1d8b7e3880929ccb592e30ae1ad1dea79859846c96914cdfd152098319f6024acf69bf6e48bc4cbc1e5d24e053f2c97dce07
6
+ metadata.gz: 4a0e0ddc1f49f69dbf5718892b6eeb665860a9381a0854862a9cd65a8ddccf0de4f30f602861a8dd9a909f6f6617d6569e7fa3d8a65864b1c9e65f250414bdd2
7
+ data.tar.gz: ff50fc286e891f70a7fdca14a826a2be0dc0638c64a3b00f5f69af632a10d8d0bad4053d7524e073f969ba44e800d4da5f61639723efdb3879c94a0e3f3cad3f
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -58,31 +58,18 @@ Each version of Kitchen-Terraform is published as a
58
58
  [Ruby gem][ruby-gems-what-is] to [RubyGems.org][kitchen-terraform-gem]
59
59
  which makes them readily available for installation on a system.
60
60
 
61
- #### RubyGems
62
-
63
- To install a version of Kitchen-Terraform using the default Ruby package
64
- manager, RubyGems, run a command like the following example.
65
-
66
- > Installing Kitchen-Terraform with RubyGems
67
-
68
- ```sh
69
- gem install kitchen-terraform --version 3.1.0
70
- ```
71
-
72
- More information can be found in the
73
- [RubyGems: Installing Gems][rubygems-installing-gems] article.
74
-
75
61
  #### Bundler
76
62
 
77
- [Bundler][bundler] can also be used to manage versions of
78
- Kitchen-Terraform on the system in a manner that is easily reproducible
79
- on other systems.
63
+ [Bundler][bundler] should be used to manage versions of
64
+ Kitchen-Terraform on the system. Using Bundler provides easily
65
+ reproducible Ruby gem installations that can be shared with other
66
+ systems.
80
67
 
81
68
  First, create a `Gemfile` with contents like the following example. The
82
69
  pessimistic pinning of the version is recommended to benefit from
83
70
  the semantic versioning of the Ruby gem.
84
71
 
85
- > Defining Kitchen-Terraform as a dependency for Bundler
72
+ > Defining Kitchen-Terraform as a dependency for Bundler in a Gemfile
86
73
 
87
74
  ```ruby
88
75
  source "https://rubygems.org/" do
@@ -101,9 +88,31 @@ Second, run the following command.
101
88
  bundle install
102
89
  ```
103
90
 
91
+ The preceding command will create a `Gemfile.lock` comprising a list
92
+ of the resolved Ruby gem dependencies.
93
+
104
94
  More information can be found in the
105
95
  [Bundler: In Depth][bundler-in-depth] article.
106
96
 
97
+ #### RubyGems
98
+
99
+ RubyGems, the default Ruby package manager, can also be used to install
100
+ a version of Kitchen-Terraform by running a command like the following
101
+ example.
102
+
103
+ > Installing Kitchen-Terraform with RubyGems
104
+
105
+ ```sh
106
+ gem install kitchen-terraform --version 3.1.0
107
+ ```
108
+
109
+ This approach is not recommended as it requires more effort to install
110
+ the gem in a manner that is reproducible and free of dependency
111
+ conflicts.
112
+
113
+ More information can be found in the
114
+ [RubyGems: Installing Gems][rubygems-installing-gems] article.
115
+
107
116
  ## Usage
108
117
 
109
118
  ### Configuration
@@ -127,17 +136,28 @@ More information can be found in the
127
136
 
128
137
  ### Example
129
138
 
130
- Assume there is a system which has Kitchen-Terraform and
131
- [Docker][docker] installed.
139
+ This example demonstrates how to test a simple Terraform configuration
140
+ which utilizes the [Docker provider][docker-provider].
141
+
142
+ The test system is assumed to be running Ubuntu 17.04.
143
+
144
+ Kitchen-Terraform and its dependencies are assumed to have been
145
+ installed on the test system as described in the
146
+ [Installation](#installation) section.
147
+
148
+ The [Docker Community Editiion][docker-community-edition] is assumed to
149
+ have been installed on the test system.
132
150
 
133
- Assume the working directory on said system a hierarchy like the
134
- following examples.
151
+ The working directory on the test system is assumed to contain a
152
+ hierarchy of files comprising the following blocks.
135
153
 
136
154
  > Directory hierarchy
137
155
 
138
156
  ```
139
157
  .
140
158
  ├── .kitchen.yml
159
+ ├── Gemfile
160
+ ├── Gemfile.lock
141
161
  ├── main.tf
142
162
  └── test
143
163
  └── integration
@@ -147,7 +167,7 @@ following examples.
147
167
  └── inspec.yml
148
168
  ```
149
169
 
150
- > ./.kitchen.yml
170
+ > ./.kitchen.yml (Test Kitchen configuration)
151
171
 
152
172
  ```yaml
153
173
  driver:
@@ -233,7 +253,7 @@ and verify that the container is running Ubuntu.
233
253
  > Verifying with Kitchen-Terraform
234
254
 
235
255
  ```sh
236
- $ kitchen test
256
+ $ bundle exec kitchen test
237
257
  -----> Starting Kitchen...
238
258
  ...
239
259
  $$$$$$ Running command `terraform init...`
@@ -334,6 +354,8 @@ Kitchen-Terraform is distributed under the [Apache License][license].
334
354
  [contributing-document]: https://github.com/newcontext-oss/kitchen-terraform/blob/master/CONTRIBUTING.md
335
355
  [developing-document]: https://github.com/newcontext-oss/kitchen-terraform/blob/master/DEVELOPING.md
336
356
  [docker]: https://www.docker.com/
357
+ [docker-community-edition]: https://store.docker.com/editions/community/docker-ce-server-ubuntu
358
+ [docker-provider]: https://www.terraform.io/docs/providers/docker/index.html
337
359
  [gem-downloads-total-shield]: https://img.shields.io/gem/dt/kitchen-terraform.svg?style=plastic
338
360
  [gem-downloads-version-shield]: https://img.shields.io/gem/dtv/kitchen-terraform.svg?style=plastic
339
361
  [gem-version-shield]: https://img.shields.io/gem/v/kitchen-terraform.svg?style=plastic
@@ -17,4 +17,4 @@
17
17
  require "kitchen/terraform"
18
18
 
19
19
  # The version of the kitchen-terraform gem.
20
- ::Kitchen::Terraform::VERSION = "3.1.0".freeze
20
+ ::Kitchen::Terraform::VERSION = "3.2.0".freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lane
@@ -55,7 +55,7 @@ cert_chain:
55
55
  XjOfZudLs1zJ8ZNOuwj6KkGJ9J3XHd9hM95MtBEWlxAfYdCuW1+v7zCTfbieBEba
56
56
  UIyyldg4TuVcuRs8uKJyempT0hqx2DniseBWw3nvtgom3A==
57
57
  -----END CERTIFICATE-----
58
- date: 2018-01-08 00:00:00.000000000 Z
58
+ date: 2018-03-21 00:00:00.000000000 Z
59
59
  dependencies:
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: bundler-audit
@@ -477,7 +477,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
477
477
  version: '2.2'
478
478
  - - "<"
479
479
  - !ruby/object:Gem::Version
480
- version: '2.5'
480
+ version: '2.6'
481
481
  required_rubygems_version: !ruby/object:Gem::Requirement
482
482
  requirements:
483
483
  - - ">="
@@ -486,7 +486,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
486
486
  requirements:
487
487
  - Terraform >= 0.10.2, < 0.12.0
488
488
  rubyforge_project:
489
- rubygems_version: 2.7.4
489
+ rubygems_version: 2.7.6
490
490
  signing_key:
491
491
  specification_version: 4
492
492
  summary: Test Kitchen plugins for testing Terraform configuration
metadata.gz.sig CHANGED
Binary file