smart_proxy_discovery 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/lib/smart_proxy_discovery/discovery_main.rb +3 -3
- data/lib/smart_proxy_discovery/version.rb +1 -1
- metadata +36 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 53ec5dc37ad16c34547619dab9d09f45b0a0a82c6fb41e4aabc98219aed191ed
|
4
|
+
data.tar.gz: 3e4f79e7b01f14b0fe5d7a5bfd489c4dfab29ae57e975d1f84bf669e40464356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f829359f348f35f3b6d49633d422fe5b3fe3a77468cd2a27968dc7cb91bf736030db4db641b64e27e69f8ac2fdfef5aa4f99a651f9b3802d0de1ef82bbba9310
|
7
|
+
data.tar.gz: 6577c28398cb437da1b3b075fe14af1ff5f1f34ab2bc6eeb10934e0306fb30654e71b0a796fef0903c6675bb5af030648978ac14c130032dfed12ef3f47c0664
|
data/README.md
CHANGED
@@ -2,4 +2,4 @@
|
|
2
2
|
|
3
3
|
This plug-in adds support for handling discovery in Foreman's Smart Proxy.
|
4
4
|
|
5
|
-
This plugin works only if [
|
5
|
+
This plugin works only if the [Discovery plugin](https://github.com/theforeman/foreman_discovery) is running on Foreman.
|
@@ -8,8 +8,6 @@ module Proxy::Discovery
|
|
8
8
|
|
9
9
|
class << self
|
10
10
|
CREATE_DISCOVERED_HOST_PATH = '/api/v2/discovered_hosts/facts'
|
11
|
-
SCHEME = Proxy::Discovery::Plugin.settings.node_scheme
|
12
|
-
PORT = Proxy::Discovery::Plugin.settings.node_port
|
13
11
|
|
14
12
|
def create_discovered_host(request)
|
15
13
|
foreman_request = Proxy::HttpRequest::ForemanRequest.new()
|
@@ -51,7 +49,9 @@ module Proxy::Discovery
|
|
51
49
|
private
|
52
50
|
|
53
51
|
def generate_url(ip)
|
54
|
-
|
52
|
+
scheme = Proxy::Discovery::Plugin.settings.node_scheme
|
53
|
+
port = Proxy::Discovery::Plugin.settings.node_port
|
54
|
+
"#{scheme}://#{ip}:#{port}"
|
55
55
|
end
|
56
56
|
|
57
57
|
def get_rest_client(url)
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_discovery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shlomi Zadok
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: test-unit
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rake
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -28,16 +42,16 @@ dependencies:
|
|
28
42
|
name: rack
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
47
|
+
version: '0'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - "
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rack-test
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,23 +98,19 @@ dependencies:
|
|
84
98
|
name: rest-client
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- - "
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.6.2
|
90
|
-
- - "<"
|
101
|
+
- - ">="
|
91
102
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
103
|
+
version: '0'
|
93
104
|
type: :runtime
|
94
105
|
prerelease: false
|
95
106
|
version_requirements: !ruby/object:Gem::Requirement
|
96
107
|
requirements:
|
97
|
-
- - "
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: 1.6.2
|
100
|
-
- - "<"
|
108
|
+
- - ">="
|
101
109
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
103
|
-
description:
|
110
|
+
version: '0'
|
111
|
+
description: This smart proxy plugin, together with a Foreman plugin, add the capability
|
112
|
+
to discover unknown bare-metal. This plugin provides proxy API for nodes to communicate
|
113
|
+
with Foreman instance and vice versa.
|
104
114
|
email: szadok@redhat.com
|
105
115
|
executables: []
|
106
116
|
extensions: []
|
@@ -108,17 +118,17 @@ extra_rdoc_files:
|
|
108
118
|
- README.md
|
109
119
|
- LICENSE
|
110
120
|
files:
|
111
|
-
-
|
112
|
-
-
|
121
|
+
- LICENSE
|
122
|
+
- README.md
|
123
|
+
- bundler.d/discovery.rb
|
124
|
+
- lib/smart_proxy_discovery.rb
|
113
125
|
- lib/smart_proxy_discovery/discovery.rb
|
126
|
+
- lib/smart_proxy_discovery/discovery_api.rb
|
114
127
|
- lib/smart_proxy_discovery/discovery_main.rb
|
128
|
+
- lib/smart_proxy_discovery/http_config.ru
|
115
129
|
- lib/smart_proxy_discovery/version.rb
|
116
|
-
- lib/smart_proxy_discovery.rb
|
117
130
|
- settings.d/discovery.yml.example
|
118
|
-
|
119
|
-
- README.md
|
120
|
-
- LICENSE
|
121
|
-
homepage: http://github.com/theforeman/smart_proxy_discovery
|
131
|
+
homepage: https://github.com/theforeman/smart_proxy_discovery
|
122
132
|
licenses:
|
123
133
|
- GPLv3
|
124
134
|
metadata: {}
|
@@ -138,9 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
148
|
version: '0'
|
139
149
|
requirements: []
|
140
150
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.7.6
|
142
152
|
signing_key:
|
143
153
|
specification_version: 4
|
144
|
-
summary:
|
154
|
+
summary: Discovery plugin for Foreman's smart proxy
|
145
155
|
test_files: []
|
146
|
-
has_rdoc:
|