rouster 0.69 → 0.71
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/lib/rouster.rb +7 -2
- data/plugins/openstack.rb +4 -7
- 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: afc35059dfd069465564f8bfc05e73691eeae808
|
|
4
|
+
data.tar.gz: 7bdf52d6fbc039e0eeedb7082c074554af63ecbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eff286e080ac8cfaf0cbcdc23c5488ec879860f613cf01009dd5b1d24cd02c918c9fb54f705e863bfdfb948bcdbb84b717099915de4e89b54524c9fe002a5556
|
|
7
|
+
data.tar.gz: eddbbc417d46c8e1fb8235a188170f3d2599f4eb0f43bae13ab1746e15b155314a15f8531199b9867955f3df052dfbfa9c2cc8e53cd474694a4724c131234e2d
|
data/lib/rouster.rb
CHANGED
|
@@ -12,7 +12,7 @@ require 'rouster/vagrant'
|
|
|
12
12
|
class Rouster
|
|
13
13
|
|
|
14
14
|
# sporadically updated version number
|
|
15
|
-
VERSION = 0.
|
|
15
|
+
VERSION = 0.71
|
|
16
16
|
|
|
17
17
|
# custom exceptions -- what else do we want them to include/do?
|
|
18
18
|
class ArgumentError < StandardError; end # thrown by methods that take parameters from users
|
|
@@ -212,7 +212,12 @@ class Rouster
|
|
|
212
212
|
@logger.debug(':instance specified, will connect to existing OpenStack instance')
|
|
213
213
|
inst_details = self.ostack_describe_instance(@passthrough[:instance])
|
|
214
214
|
raise ArgumentError.new(sprintf('No such instance found in OpenStack - %s', @passthrough[:instance])) if inst_details.nil?
|
|
215
|
-
|
|
215
|
+
inst_details.addresses.each_key do |address_key|
|
|
216
|
+
if defined?(inst_details.addresses[address_key].first['addr'])
|
|
217
|
+
@passthrough[:host] = inst_details.addresses[address_key].first['addr']
|
|
218
|
+
break
|
|
219
|
+
end
|
|
220
|
+
end
|
|
216
221
|
end
|
|
217
222
|
else
|
|
218
223
|
raise ArgumentError.new(sprintf('passthrough :type [%s] unknown, allowed: :aws, :openstack, :local, :remote', @passthrough[:type]))
|
data/plugins/openstack.rb
CHANGED
|
@@ -40,13 +40,10 @@ class Rouster
|
|
|
40
40
|
:image_ref => @passthrough[:image_ref], :key_name => @passthrough[:keypair], :user_data => @passthrough[:user_data])
|
|
41
41
|
server.wait_for { ready? }
|
|
42
42
|
@instance_data = server
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if defined?(server.addresses[address_key])
|
|
48
|
-
self.passthrough[:host] = server.addresses[address_key][0]['addr']
|
|
49
|
-
end
|
|
43
|
+
server.addresses.each_key do |address_key|
|
|
44
|
+
if defined?(server.addresses[address_key])
|
|
45
|
+
self.passthrough[:host] = server.addresses[address_key].first['addr']
|
|
46
|
+
break
|
|
50
47
|
end
|
|
51
48
|
end
|
|
52
49
|
self.passthrough[:instance] = self.ostack_get_instance_id
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rouster
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.71'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Conor Horan-Kates
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|