agentless-catalog-executor 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -4
- data/CHANGELOG.md +25 -1
- data/README.md +3 -1
- data/lib/ace/puppet_util.rb +13 -1
- data/lib/ace/transport_app.rb +5 -0
- data/lib/ace/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ef51de4043d39dad276c80d1897d4152389927d0c2afcb74c0ae8622a0b65dc
|
4
|
+
data.tar.gz: a0471b5e624c78463165ff7f4f06d71d6bc221a9299117a67effb53b75699c30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de0437f62f231772e0279299abc4a788b2ad2719488ae23713343e27372730f86d0dad1fa7d88b0f1eb57343a2cc9dd9dc638400094dced79c14be547a98a9cf
|
7
|
+
data.tar.gz: 22036e42f254fed0022a9b7b1afd393cc4947a7c1cccda4baf7db1de757f5f616d317333881f2e40368b44725a82a563144f192bf3df8cc5b0dbdd719e92a829
|
data/.rubocop.yml
CHANGED
@@ -37,12 +37,15 @@ Style/NumericPredicate:
|
|
37
37
|
Layout/EmptyLineAfterGuardClause:
|
38
38
|
Enabled: false
|
39
39
|
|
40
|
-
Layout/
|
40
|
+
Layout/HeredocIndentation:
|
41
41
|
Enabled: false
|
42
42
|
|
43
43
|
Layout/ClosingHeredocIndentation:
|
44
44
|
Enabled: false
|
45
45
|
|
46
|
+
Layout/LineLength:
|
47
|
+
Max: 120
|
48
|
+
|
46
49
|
Style/GuardClause:
|
47
50
|
Enabled: false
|
48
51
|
|
@@ -72,9 +75,6 @@ Metrics/ClassLength:
|
|
72
75
|
Metrics/CyclomaticComplexity:
|
73
76
|
Enabled: false
|
74
77
|
|
75
|
-
Metrics/LineLength:
|
76
|
-
Max: 120
|
77
|
-
|
78
78
|
Metrics/MethodLength:
|
79
79
|
Enabled: false
|
80
80
|
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,24 @@
|
|
3
3
|
All significant changes to this repo will be summarized in this file.
|
4
4
|
|
5
5
|
|
6
|
+
## [v1.1.0](https://github.com/puppetlabs/ace/tree/v1.1.0) (2020-01-17)
|
7
|
+
|
8
|
+
[Full Changelog](https://github.com/puppetlabs/ace/compare/v1.0.0...v1.1.0)
|
9
|
+
|
10
|
+
**Implemented enhancements:**
|
11
|
+
|
12
|
+
- \(PE-27794\) add a puma status endpoint [\#65](https://github.com/puppetlabs/ace/pull/65) ([tkishel](https://github.com/tkishel))
|
13
|
+
|
14
|
+
**Fixed bugs:**
|
15
|
+
|
16
|
+
- \(MODULES-10451\) snoop `certificate\_revocation` setting from puppet [\#66](https://github.com/puppetlabs/ace/pull/66) ([DavidS](https://github.com/DavidS))
|
17
|
+
|
18
|
+
**Merged pull requests:**
|
19
|
+
|
20
|
+
- \(QENG-7501\) Minor formatting change to push tag in build pipeline [\#63](https://github.com/puppetlabs/ace/pull/63) ([cmccrisken-puppet](https://github.com/cmccrisken-puppet))
|
21
|
+
|
6
22
|
## [v1.0.0](https://github.com/puppetlabs/ace/tree/v1.0.0) (2019-10-08)
|
23
|
+
|
7
24
|
[Full Changelog](https://github.com/puppetlabs/ace/compare/v0.10.0...v1.0.0)
|
8
25
|
|
9
26
|
**Implemented enhancements:**
|
@@ -23,6 +40,7 @@ All significant changes to this repo will be summarized in this file.
|
|
23
40
|
|
24
41
|
**Merged pull requests:**
|
25
42
|
|
43
|
+
- \(PE-27346\) Release prep for 1.0.0 [\#62](https://github.com/puppetlabs/ace/pull/62) ([sheenaajay](https://github.com/sheenaajay))
|
26
44
|
- \(maint\) rubocop fixes for RSpec/EmptyLineAfterExample [\#61](https://github.com/puppetlabs/ace/pull/61) ([da-ar](https://github.com/da-ar))
|
27
45
|
- \(FM-8496\) Add support for Puppet debug flags during /execute\_catalog [\#58](https://github.com/puppetlabs/ace/pull/58) ([david22swan](https://github.com/david22swan))
|
28
46
|
- \(maint\) Do not follow spec test found in `Volumes` [\#56](https://github.com/puppetlabs/ace/pull/56) ([da-ar](https://github.com/da-ar))
|
@@ -30,6 +48,7 @@ All significant changes to this repo will be summarized in this file.
|
|
30
48
|
- \(maint\) using the CA\_ALLOW\_SUBJECT\_ALT\_NAMES env variable for new doc… [\#47](https://github.com/puppetlabs/ace/pull/47) ([Thomas-Franklin](https://github.com/Thomas-Franklin))
|
31
49
|
|
32
50
|
## [v0.10.0](https://github.com/puppetlabs/ace/tree/v0.10.0) (2019-07-25)
|
51
|
+
|
33
52
|
[Full Changelog](https://github.com/puppetlabs/ace/compare/v0.9.1...v0.10.0)
|
34
53
|
|
35
54
|
**Merged pull requests:**
|
@@ -45,6 +64,7 @@ All significant changes to this repo will be summarized in this file.
|
|
45
64
|
- \(FM-7975\) Remove mock responses from /execute\_catalog endpoint [\#37](https://github.com/puppetlabs/ace/pull/37) ([da-ar](https://github.com/da-ar))
|
46
65
|
|
47
66
|
## [v0.9.1](https://github.com/puppetlabs/ace/tree/v0.9.1) (2019-04-16)
|
67
|
+
|
48
68
|
[Full Changelog](https://github.com/puppetlabs/ace/compare/v0.9.0...v0.9.1)
|
49
69
|
|
50
70
|
**Fixed bugs:**
|
@@ -57,6 +77,7 @@ All significant changes to this repo will be summarized in this file.
|
|
57
77
|
- \(FM-7927\) Docs review [\#35](https://github.com/puppetlabs/ace/pull/35) ([clairecadman](https://github.com/clairecadman))
|
58
78
|
|
59
79
|
## [v0.9.0](https://github.com/puppetlabs/ace/tree/v0.9.0) (2019-04-16)
|
80
|
+
|
60
81
|
[Full Changelog](https://github.com/puppetlabs/ace/compare/0.1.0...v0.9.0)
|
61
82
|
|
62
83
|
**Implemented enhancements:**
|
@@ -92,6 +113,9 @@ All significant changes to this repo will be summarized in this file.
|
|
92
113
|
- Update JSONSchema, and mock endpoint [\#4](https://github.com/puppetlabs/ace/pull/4) ([da-ar](https://github.com/da-ar))
|
93
114
|
|
94
115
|
## [0.1.0](https://github.com/puppetlabs/ace/tree/0.1.0) (2018-11-30)
|
116
|
+
|
117
|
+
[Full Changelog](https://github.com/puppetlabs/ace/compare/bb49822f5d3b0dc47e8c10cadb3b4ea1c507d9ef...0.1.0)
|
118
|
+
|
95
119
|
**Implemented enhancements:**
|
96
120
|
|
97
121
|
- \(PE-25514\) Add docker support for ACE [\#3](https://github.com/puppetlabs/ace/pull/3) ([da-ar](https://github.com/da-ar))
|
@@ -103,4 +127,4 @@ All significant changes to this repo will be summarized in this file.
|
|
103
127
|
|
104
128
|
|
105
129
|
|
106
|
-
\* *This
|
130
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/README.md
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
## App Overview
|
4
4
|
|
5
|
-
The Agentless Catalog Executor (ACE) provides agentless executions services for tasks and catalogs to Puppet Enterprise (PE). See [developer-docs/api](developer-docs/api.md) for an API spec.
|
5
|
+
The Agentless Catalog Executor (ACE) provides agentless executions services for tasks and catalogs to Puppet Enterprise (PE). See [developer-docs/api](developer-docs/api.md) for an API spec.
|
6
|
+
|
7
|
+
See below for development info.
|
6
8
|
|
7
9
|
## Code Overview
|
8
10
|
|
data/lib/ace/puppet_util.rb
CHANGED
@@ -4,7 +4,18 @@ require 'openssl'
|
|
4
4
|
|
5
5
|
module ACE
|
6
6
|
class PuppetUtil
|
7
|
+
def self.certificate_revocation
|
8
|
+
@certificate_revocation ||= begin
|
9
|
+
Puppet.initialize_settings
|
10
|
+
result = Puppet[:certificate_revocation]
|
11
|
+
Puppet.clear
|
12
|
+
result
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
7
16
|
def self.init_global_settings(ca_cert_path, ca_crls_path, private_key_path, client_cert_path, cachedir, uri)
|
17
|
+
revocation = certificate_revocation
|
18
|
+
|
8
19
|
Puppet::Util::Log.destinations.clear
|
9
20
|
Puppet::Util::Log.newdestination(:console)
|
10
21
|
Puppet.settings[:log_level] = 'notice'
|
@@ -33,7 +44,8 @@ module ACE
|
|
33
44
|
cacerts: cert_provider.load_cacerts(required: true),
|
34
45
|
crls: cert_provider.load_crls(required: true),
|
35
46
|
private_key: OpenSSL::PKey::RSA.new(File.read(private_key_path, encoding: 'utf-8')),
|
36
|
-
client_cert: OpenSSL::X509::Certificate.new(File.read(client_cert_path, encoding: 'utf-8'))
|
47
|
+
client_cert: OpenSSL::X509::Certificate.new(File.read(client_cert_path, encoding: 'utf-8')),
|
48
|
+
revocation: revocation
|
37
49
|
)
|
38
50
|
# Store SSL settings for reuse in isolated process
|
39
51
|
@ssl_settings = {
|
data/lib/ace/transport_app.rb
CHANGED
@@ -198,6 +198,11 @@ module ACE
|
|
198
198
|
get '/admin/gc_stat' do
|
199
199
|
[200, GC.stat.to_json]
|
200
200
|
end
|
201
|
+
|
202
|
+
get '/admin/status' do
|
203
|
+
stats = Puma.stats
|
204
|
+
[200, stats.is_a?(Hash) ? stats.to_json : stats]
|
205
|
+
end
|
201
206
|
# :nocov:
|
202
207
|
|
203
208
|
# run this with "curl -X POST http://0.0.0.0:44633/run_task -d '{}'"
|
data/lib/ace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agentless-catalog-executor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Schmitt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bolt
|
@@ -268,7 +268,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
268
|
- !ruby/object:Gem::Version
|
269
269
|
version: '0'
|
270
270
|
requirements: []
|
271
|
-
|
271
|
+
rubyforge_project:
|
272
|
+
rubygems_version: 2.7.6.2
|
272
273
|
signing_key:
|
273
274
|
specification_version: 4
|
274
275
|
summary: ACE lets you run remote tasks and catalogs using puppet and bolt.
|