smart_proxy_request_forwarder 0.0.3 → 0.0.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff6f468cf17704c29606e810ebfc8d19c3f005953de92d4c4036f31690e58758
|
|
4
|
+
data.tar.gz: 725023a18ac6599f7c698da579d45505de2b12dd6723cc7d640eced24d52f73a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1569a81c9fe5808304a23e3de4264c46f67d31578c745fac1639f512adb96616e61220820932c2e28942f4e76cffea5b01ec05cc5aec98c9aeef5674c145b1e
|
|
7
|
+
data.tar.gz: 54975cb6ebab7fc56599c8d6769fb3862ebc85aa1f27bcffff7323b57399209cc23d923058fcd6b7facb8e728882145c88667e3dd47640e2c8b5becac14bd5b2
|
data/README.md
CHANGED
|
@@ -5,13 +5,12 @@ configuration servers such as Puppet or Salt masters to Foreman.
|
|
|
5
5
|
|
|
6
6
|
## Public API
|
|
7
7
|
|
|
8
|
-
### POST /
|
|
8
|
+
### POST /api/config_reports
|
|
9
9
|
|
|
10
|
-
### POST /
|
|
10
|
+
### POST /api/hosts/facts
|
|
11
11
|
|
|
12
12
|
Both API endpoints are forwarded directly to Foreman without further parameter check.
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
# Installation
|
|
16
15
|
|
|
17
16
|
**Clone smart-proxy**
|
|
@@ -8,7 +8,7 @@ class Proxy::RequestForwarder::Api < Sinatra::Base
|
|
|
8
8
|
post '/*' do
|
|
9
9
|
do_authorize_any
|
|
10
10
|
case request.path
|
|
11
|
-
when '/
|
|
11
|
+
when '/api/hosts/facts', '/api/config_reports'
|
|
12
12
|
response = Proxy::RequestForwarder::ProxyRequest.new.foreman_request(request)
|
|
13
13
|
handle_response(response)
|
|
14
14
|
else
|
|
@@ -6,8 +6,7 @@ module Proxy::RequestForwarder
|
|
|
6
6
|
class ProxyRequest < ::Proxy::HttpRequest::ForemanRequest
|
|
7
7
|
include Proxy::Log
|
|
8
8
|
def foreman_request(request)
|
|
9
|
-
|
|
10
|
-
req = request_factory.create_post(path, request.body.read)
|
|
9
|
+
req = request_factory.create_post(request.path, request.body.read)
|
|
11
10
|
send_request(req)
|
|
12
11
|
end
|
|
13
12
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smart_proxy_request_forwarder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nadja Heitmann
|
|
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
69
69
|
requirements:
|
|
70
70
|
- - ">="
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: '
|
|
72
|
+
version: '3.0'
|
|
73
73
|
- - "<"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '4'
|
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
79
|
- !ruby/object:Gem::Version
|
|
80
80
|
version: '0'
|
|
81
81
|
requirements: []
|
|
82
|
-
rubygems_version:
|
|
82
|
+
rubygems_version: 4.0.16
|
|
83
83
|
specification_version: 4
|
|
84
84
|
summary: Request forwarder for Foreman smart proxy
|
|
85
85
|
test_files: []
|