train 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/train/transports/winrm.rb +11 -5
- data/lib/train/version.rb +1 -1
- metadata +17 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c4765459fcc15937793cf65643f2d95ffb9deb6a4902364adc38ee8c9194b609
|
4
|
+
data.tar.gz: 9149263a29d8760dafa83824c4f25a1aa252553dbc58b9e74e31edab7db8ffad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0da823f4a6e406654b38a6c0cca183d8b4720425e2d2b9eac7772eaa41d1f4fdd105b8d0fc70d1748ac9dfc8a7d48cee52b256696b4c244327ccbcfbccb0bad
|
7
|
+
data.tar.gz: f5d33756dd4e9f0ab66f762aeeb1800ec69cdd8732afcebd8ce7580336c967f439accd4891db600a9d281d52f2f23752ab31f5bfcec081c4fa46c53e81c65f84
|
@@ -40,10 +40,8 @@ module Train::Transports
|
|
40
40
|
|
41
41
|
require 'train/transports/winrm_connection'
|
42
42
|
|
43
|
-
# ref: https://github.com/
|
44
|
-
|
45
|
-
# basic ssl options is only supported
|
46
|
-
SUPPORTED_WINRM_TRANSPORTS = %i(negotiate ssl plaintext).freeze
|
43
|
+
# ref: https://github.com/winrb/winrm#transports
|
44
|
+
SUPPORTED_WINRM_TRANSPORTS = %i(negotiate ssl plaintext kerberos).freeze
|
47
45
|
|
48
46
|
# common target configuration
|
49
47
|
option :host, required: true
|
@@ -62,6 +60,10 @@ module Train::Transports
|
|
62
60
|
option :connection_retries, default: 5
|
63
61
|
option :connection_retry_sleep, default: 1
|
64
62
|
option :max_wait_until_ready, default: 600
|
63
|
+
option :ssl_peer_fingerprint, default: nil
|
64
|
+
option :kerberos_realm, default: nil
|
65
|
+
option :kerberos_service, default: nil
|
66
|
+
option :ca_trust_file, default: nil
|
65
67
|
|
66
68
|
def initialize(opts)
|
67
69
|
super(opts)
|
@@ -91,7 +93,7 @@ module Train::Transports
|
|
91
93
|
port = opts[:port]
|
92
94
|
port = (opts[:ssl] ? 5986 : 5985) if port.nil?
|
93
95
|
winrm_transport = opts[:winrm_transport].to_sym
|
94
|
-
unless SUPPORTED_WINRM_TRANSPORTS.
|
96
|
+
unless SUPPORTED_WINRM_TRANSPORTS.include?(winrm_transport)
|
95
97
|
fail Train::ClientError, "Unsupported transport type: #{winrm_transport.inspect}"
|
96
98
|
end
|
97
99
|
|
@@ -124,6 +126,10 @@ module Train::Transports
|
|
124
126
|
connection_retry_sleep: opts[:connection_retry_sleep],
|
125
127
|
max_wait_until_ready: opts[:max_wait_until_ready],
|
126
128
|
no_ssl_peer_verification: opts[:self_signed],
|
129
|
+
realm: opts[:kerberos_realm],
|
130
|
+
service: opts[:kerberos_service],
|
131
|
+
ca_trust_file: opts[:ca_trust_file],
|
132
|
+
ssl_peer_fingerprint: opts[:ssl_peer_fingerprint],
|
127
133
|
}
|
128
134
|
end
|
129
135
|
|
data/lib/train/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -37,6 +37,9 @@ dependencies:
|
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '2.0'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '4.0'
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -44,6 +47,9 @@ dependencies:
|
|
44
47
|
- - ">="
|
45
48
|
- !ruby/object:Gem::Version
|
46
49
|
version: '2.0'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '4.0'
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: net-ssh
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,16 +74,22 @@ dependencies:
|
|
68
74
|
name: net-scp
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
70
76
|
requirements:
|
71
|
-
- - "
|
77
|
+
- - ">="
|
72
78
|
- !ruby/object:Gem::Version
|
73
79
|
version: '1.2'
|
80
|
+
- - "<"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
74
83
|
type: :runtime
|
75
84
|
prerelease: false
|
76
85
|
version_requirements: !ruby/object:Gem::Requirement
|
77
86
|
requirements:
|
78
|
-
- - "
|
87
|
+
- - ">="
|
79
88
|
- !ruby/object:Gem::Version
|
80
89
|
version: '1.2'
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '3.0'
|
81
93
|
- !ruby/object:Gem::Dependency
|
82
94
|
name: winrm
|
83
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -296,8 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
308
|
- !ruby/object:Gem::Version
|
297
309
|
version: '0'
|
298
310
|
requirements: []
|
299
|
-
|
300
|
-
rubygems_version: 2.6.14.3
|
311
|
+
rubygems_version: 3.0.1
|
301
312
|
signing_key:
|
302
313
|
specification_version: 4
|
303
314
|
summary: Transport interface to talk to different backends.
|