kitchen-openstack 1.3.0 → 1.4.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +7 -2
- data/lib/kitchen/driver/openstack.rb +5 -0
- data/lib/kitchen/driver/openstack_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d61046f3b469a583ba70e208458891c7776d2e84
|
|
4
|
+
data.tar.gz: 39dd8f696144547472cf9e36add6d30c1272d57c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90b0fd6ce3270b2ca24c3aab4a69a64a2ddcf2cacf6ce54e0efab379cb725077df0ed7881ed839714f411e8f19bdd054bef4aacda34df8e6f46711b630161aa1
|
|
7
|
+
data.tar.gz: 9252addff3911915eb6447881089541b1eef64ce5cbc5e173ae10d29fe50f2fdbcbd06d1dec6202ce44c8754572b02ec92fe792f118ea132e02a5c958a8d4bda
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# 1.4.0 / 2014-04-09
|
|
2
|
+
|
|
3
|
+
### Improvements
|
|
4
|
+
|
|
5
|
+
* PR [#46][] - Use a configured floating IP for SSH; via [@dschlenk][]
|
|
6
|
+
|
|
1
7
|
# 1.3.0 / 2014-03-09
|
|
2
8
|
|
|
3
9
|
### New Features
|
|
@@ -81,6 +87,7 @@ certain specified NICs; via [@monsterzz][]
|
|
|
81
87
|
|
|
82
88
|
* Initial release! Woo!
|
|
83
89
|
|
|
90
|
+
[#46]: https://github.com/test-kitchen/kitchen-openstack/pull/46
|
|
84
91
|
[#41]: https://github.com/test-kitchen/kitchen-openstack/pull/41
|
|
85
92
|
[#40]: https://github.com/test-kitchen/kitchen-openstack/pull/40
|
|
86
93
|
[#39]: https://github.com/test-kitchen/kitchen-openstack/pull/39
|
|
@@ -100,6 +107,7 @@ certain specified NICs; via [@monsterzz][]
|
|
|
100
107
|
[#7]: https://github.com/test-kitchen/kitchen-openstack/pull/7
|
|
101
108
|
[#2]: https://github.com/test-kitchen/kitchen-openstack/pull/2
|
|
102
109
|
|
|
110
|
+
[@dschlenk]: https://github.com/dschlenk
|
|
103
111
|
[@wilreichert]: https://github.com/wilreichert
|
|
104
112
|
[@tenforward]: https://github.com/tenforward
|
|
105
113
|
[@monsterzz]: https://github.com/monsterzz
|
data/README.md
CHANGED
|
@@ -55,8 +55,6 @@ behavior can be overridden with additional options:
|
|
|
55
55
|
openstack_region: [A VALID OPENSTACK REGION]
|
|
56
56
|
openstack_service_name: [YOUR OPENSTACK COMPUTE SERVICE NAME]
|
|
57
57
|
openstack_network_name: [YOUR OPENSTACK NETWORK NAME USED TO CONNECT]
|
|
58
|
-
floating_ip: [A SPECIFIC FLOATING IP TO ASSIGN]
|
|
59
|
-
floating_ip_pool: [AN OPENSTACK POOL NAME TO ASSIGN THE NEXT IP FROM]
|
|
60
58
|
security_groups:
|
|
61
59
|
- [A LIST OF...]
|
|
62
60
|
- [...SECURITY GROUPS TO JOIN]
|
|
@@ -71,6 +69,13 @@ If a `key_name` is provided without any `private_key_path`, unexpected
|
|
|
71
69
|
behavior may result if your local RSA/DSA private key doesn't match that
|
|
72
70
|
OpenStack key.
|
|
73
71
|
|
|
72
|
+
A specific `floating_ip` or the ID of a `floating_ip_pool` can be provided to
|
|
73
|
+
bind a floating IP to the node. Any floating IP will be the IP used for
|
|
74
|
+
Test Kitchen's SSH calls to the node.
|
|
75
|
+
|
|
76
|
+
floating_ip: [A SPECIFIC FLOATING IP TO ASSIGN]
|
|
77
|
+
floating_ip_pool: [AN OPENSTACK POOL NAME TO ASSIGN THE NEXT IP FROM]
|
|
78
|
+
|
|
74
79
|
The `network_ref` option can be specified as an exact id, an exact name,
|
|
75
80
|
or as a regular expression matching the name of the network. You can pass one
|
|
76
81
|
|
|
@@ -218,6 +218,7 @@ module Kitchen
|
|
|
218
218
|
if free_addrs.empty?
|
|
219
219
|
raise ActionFailed, "No available IPs in pool <#{pool}>"
|
|
220
220
|
end
|
|
221
|
+
config[:floating_ip] = free_addrs[0]
|
|
221
222
|
attach_ip(server, free_addrs[0])
|
|
222
223
|
end
|
|
223
224
|
end
|
|
@@ -229,6 +230,10 @@ module Kitchen
|
|
|
229
230
|
end
|
|
230
231
|
|
|
231
232
|
def get_ip(server)
|
|
233
|
+
unless config[:floating_ip].nil?
|
|
234
|
+
debug "Using floating ip: #{config[:floating_ip]}"
|
|
235
|
+
return config[:floating_ip]
|
|
236
|
+
end
|
|
232
237
|
if config[:openstack_network_name]
|
|
233
238
|
debug "Using configured net: #{config[:openstack_network_name]}"
|
|
234
239
|
return server.addresses[config[:openstack_network_name]].first['addr']
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-openstack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Hartman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|