kitchen-openstack 1.3.0 → 1.4.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
  SHA1:
3
- metadata.gz: 23c44843c2f545b10ef08c9a7e798afff8acd4e3
4
- data.tar.gz: 88bb1823d40b4929fef0de8d05a62ade24909d1c
3
+ metadata.gz: d61046f3b469a583ba70e208458891c7776d2e84
4
+ data.tar.gz: 39dd8f696144547472cf9e36add6d30c1272d57c
5
5
  SHA512:
6
- metadata.gz: cc92ccbd2840b79694c06fbbf9b631d5067ae7268b8c5f01b2739ff0cd7441eeba405d227b919f5048749ec253286adcbab5ff28e89c645418b5fe54ef10af04
7
- data.tar.gz: bb10f75c4b1751658486c274f4a398fdd59baa2bfa77a1c7a3d4fbc4617003f7186c9abfb94ff84c2d48e0bc05f232ce1c921db8e4425f8e0a68798919bc12ca
6
+ metadata.gz: 90b0fd6ce3270b2ca24c3aab4a69a64a2ddcf2cacf6ce54e0efab379cb725077df0ed7881ed839714f411e8f19bdd054bef4aacda34df8e6f46711b630161aa1
7
+ data.tar.gz: 9252addff3911915eb6447881089541b1eef64ce5cbc5e173ae10d29fe50f2fdbcbd06d1dec6202ce44c8754572b02ec92fe792f118ea132e02a5c958a8d4bda
@@ -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']
@@ -19,7 +19,7 @@
19
19
  module Kitchen
20
20
  module Driver
21
21
  # Version string for OpenStack Kitchen driver
22
- OPENSTACK_VERSION = '1.3.0'
22
+ OPENSTACK_VERSION = '1.4.0'
23
23
  end
24
24
  end
25
25
 
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.3.0
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-03-09 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen