rouster 0.71 → 0.72
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/Gemfile +2 -2
- data/Gemfile.lock +4 -4
- data/lib/rouster.rb +5 -4
- data/lib/rouster/deltas.rb +7 -7
- data/plugins/openstack.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8c7f2c8225ca7d04cc4f189c8006a766c6ab74c
|
4
|
+
data.tar.gz: 5553e3c49f5515fe2bd4d9f482af86e42f93a8b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edd74f17458fad3b4632fc5dd54fd5e1c95c7e4e0d344d67fbde49dcc4daeee11b20180851b57e7f416f65d4181853c5fef4a46310b97c536467c10bcef4f1de
|
7
|
+
data.tar.gz: 8b8ca2d25f3295e98001911cc151df6c73952d5d3e0d77dbc0de6bc4524d2c9b4f747d84cb7b0da9f3afcb7d962aef35f62acb923eea8df2946cc7fb31a6eeda
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -61,7 +61,7 @@ GEM
|
|
61
61
|
multi_json (1.10.1)
|
62
62
|
net-scp (1.2.1)
|
63
63
|
net-ssh (>= 2.6.5)
|
64
|
-
net-ssh (2.9.
|
64
|
+
net-ssh (2.9.4)
|
65
65
|
nokogiri (1.6.3.1)
|
66
66
|
mini_portile (= 0.6.0)
|
67
67
|
parser (2.3.3.0)
|
@@ -89,8 +89,8 @@ DEPENDENCIES
|
|
89
89
|
fog (= 1.24.0)
|
90
90
|
json
|
91
91
|
log4r (~> 1.1.9)
|
92
|
-
net-scp
|
93
|
-
net-ssh
|
92
|
+
net-scp (= 1.2.1)
|
93
|
+
net-ssh (= 2.9.4)
|
94
94
|
rake (= 10.4.2)
|
95
95
|
reek (= 3.10.2)
|
96
96
|
test-unit (~> 3.0.0)
|
@@ -99,4 +99,4 @@ RUBY VERSION
|
|
99
99
|
ruby 2.0.0p648
|
100
100
|
|
101
101
|
BUNDLED WITH
|
102
|
-
1.
|
102
|
+
1.15.4
|
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.72
|
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
|
@@ -455,9 +455,10 @@ class Rouster
|
|
455
455
|
@ssh = Net::SSH.start(
|
456
456
|
@passthrough[:host],
|
457
457
|
@passthrough[:user],
|
458
|
-
:port
|
459
|
-
:keys
|
460
|
-
:paranoid
|
458
|
+
:port => @passthrough[:ssh_port],
|
459
|
+
:keys => [ @passthrough[:key] ], # TODO this should be @sshkey
|
460
|
+
:paranoid => false,
|
461
|
+
:number_of_password_prompts => 0
|
461
462
|
)
|
462
463
|
break
|
463
464
|
rescue => e
|
data/lib/rouster/deltas.rb
CHANGED
@@ -150,7 +150,7 @@ class Rouster
|
|
150
150
|
}.each_pair do |source, raw|
|
151
151
|
|
152
152
|
raw.split("\n").each do |line|
|
153
|
-
next unless line.match(/\w+:\w
|
153
|
+
next unless line.match(/\w+:\w*:\w+/)
|
154
154
|
|
155
155
|
data = line.split(':')
|
156
156
|
|
@@ -772,7 +772,7 @@ class Rouster
|
|
772
772
|
}.each do |source, raw|
|
773
773
|
|
774
774
|
raw.split("\n").each do |line|
|
775
|
-
next if line.match(/(\w+)(?::\w+){3,}/).nil?
|
775
|
+
next if line.match(/([\w\.-]+)(?::\w+){3,}/).nil?
|
776
776
|
|
777
777
|
user = $1
|
778
778
|
data = line.split(':')
|
@@ -784,11 +784,11 @@ class Rouster
|
|
784
784
|
gid = data[3]
|
785
785
|
|
786
786
|
if res.has_key?(user)
|
787
|
-
@logger.info(sprintf('for[%s] old shell[%s], new shell[%s]', res[user][:shell], shell)) unless shell.eql?(res[user][:shell])
|
788
|
-
@logger.info(sprintf('for[%s] old home[%s], new home[%s]', res[user][:home], home)) unless home.eql?(res[user][:home])
|
789
|
-
@logger.info(sprintf('for[%s] old home_exists[%s], new home_exists[%s]', res[user][:home_exists], home_exists)) unless home_exists.eql?(res[user][:home_exists])
|
790
|
-
@logger.info(sprintf('for[%s] old UID[%s], new UID[%s]', res[user][:uid], uid)) unless uid.eql?(res[user][:uid])
|
791
|
-
@logger.info(sprintf('for[%s] old GID[%s], new GID[%s]', res[user][:gid], gid)) unless gid.eql?(res[user][:gid])
|
787
|
+
@logger.info(sprintf('for[%s] old shell[%s], new shell[%s]', user, res[user][:shell], shell)) unless shell.eql?(res[user][:shell])
|
788
|
+
@logger.info(sprintf('for[%s] old home[%s], new home[%s]', user, res[user][:home], home)) unless home.eql?(res[user][:home])
|
789
|
+
@logger.info(sprintf('for[%s] old home_exists[%s], new home_exists[%s]', user, res[user][:home_exists], home_exists)) unless home_exists.eql?(res[user][:home_exists])
|
790
|
+
@logger.info(sprintf('for[%s] old UID[%s], new UID[%s]', user, res[user][:uid], uid)) unless uid.eql?(res[user][:uid])
|
791
|
+
@logger.info(sprintf('for[%s] old GID[%s], new GID[%s]', user, res[user][:gid], gid)) unless gid.eql?(res[user][:gid])
|
792
792
|
end
|
793
793
|
|
794
794
|
res[user] = Hash.new()
|
data/plugins/openstack.rb
CHANGED
@@ -36,8 +36,15 @@ class Rouster
|
|
36
36
|
@logger.debug(sprintf('Connecting to running instance [%s] while calling ostack_up()', self.passthrough[:instance]))
|
37
37
|
self.connect_ssh_tunnel
|
38
38
|
else
|
39
|
-
|
39
|
+
if @passthrough[:openstack_net_id]
|
40
|
+
# if the user has set a net id, send it along
|
41
|
+
server = @nova.servers.create(:name => @name, :flavor_ref => @passthrough[:flavor_ref],
|
42
|
+
:image_ref => @passthrough[:image_ref], :nics => [{:net_id => @passthrough[:openstack_net_id] }],
|
43
|
+
:key_name => @passthrough[:keypair], :user_data => @passthrough[:user_data])
|
44
|
+
else
|
45
|
+
server = @nova.servers.create(:name => @name, :flavor_ref => @passthrough[:flavor_ref],
|
40
46
|
:image_ref => @passthrough[:image_ref], :key_name => @passthrough[:keypair], :user_data => @passthrough[:user_data])
|
47
|
+
end
|
41
48
|
server.wait_for { ready? }
|
42
49
|
@instance_data = server
|
43
50
|
server.addresses.each_key do |address_key|
|
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.72'
|
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:
|
11
|
+
date: 2018-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
version: 1.3.6
|
218
218
|
requirements: []
|
219
219
|
rubyforge_project: Rouster
|
220
|
-
rubygems_version: 2.
|
220
|
+
rubygems_version: 2.6.14
|
221
221
|
signing_key:
|
222
222
|
specification_version: 4
|
223
223
|
summary: Rouster is an abstraction layer for Vagrant
|