foreman_remote_execution 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/lib/actions/remote_execution/run_host_job.rb +1 -1
- data/app/models/remote_execution_provider.rb +4 -0
- data/extra/cockpit/foreman-cockpit-session +1 -1
- data/lib/foreman_remote_execution/version.rb +1 -1
- data/package.json +3 -3
- data/test/unit/input_template_renderer_test.rb +0 -28
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b508796a09bd44e8ded07627d4f73d9ca5f2f2ee7576ab2dab2bca47d2247f0f
|
4
|
+
data.tar.gz: f5dfc0b4375e2ab8e14675f1f7c2c1d4e1b7906a9fe2d66a3a1aa387d678af59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d7e2eed12d1517f46fbc5ba50c3c4fe5d1687334ec36e14c4ec3f3b103137c711f3059af1b4fa4b14d4828307e9b41fc4b2512d06476c6ad231c6706f8bbf11
|
7
|
+
data.tar.gz: 43d0a7b3595298d50c47545c09e337f1bcf90399f56a5a16f6e95d755bc7d9d6ba80d6547c1caefd39cf3807d44237cf9494a12505e2b030249609dd5ebd2c59
|
@@ -46,7 +46,7 @@ module Actions
|
|
46
46
|
action_options = provider.proxy_command_options(template_invocation, host)
|
47
47
|
.merge(additional_options)
|
48
48
|
|
49
|
-
plan_delegated_action(proxy,
|
49
|
+
plan_delegated_action(proxy, provider.proxy_action_class, action_options)
|
50
50
|
plan_self
|
51
51
|
end
|
52
52
|
|
@@ -26,7 +26,7 @@ end
|
|
26
26
|
|
27
27
|
def read_settings
|
28
28
|
settings_path = ENV["FOREMAN_COCKPIT_SETTINGS"] || "/etc/foreman-cockpit/settings.yml"
|
29
|
-
settings = YAML.safe_load(File.read(settings_path))
|
29
|
+
settings = YAML.safe_load(File.read(settings_path), [Symbol])
|
30
30
|
LOG.level = Logger.const_get(settings.fetch(:log_level, "INFO"))
|
31
31
|
LOG.info("Running foreman-cockpit-session with settings from #{settings_path}:\n#{settings.inspect}")
|
32
32
|
settings
|
data/package.json
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
"devDependencies": {
|
34
34
|
"@babel/core": "^7.7.0",
|
35
35
|
"@theforeman/env": "^3.3.2",
|
36
|
-
"@theforeman/builder": "^
|
36
|
+
"@theforeman/builder": "^4.0.2",
|
37
37
|
"@theforeman/vendor-dev": "^3.3.2",
|
38
38
|
"babel-eslint": "^10.0.0",
|
39
39
|
"babel-jest": "^24.9.0",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"eslint-plugin-react": "^7.4.0",
|
49
49
|
"jest": "^24.9.0"
|
50
50
|
},
|
51
|
-
"
|
52
|
-
"@theforeman/vendor": "
|
51
|
+
"peerDependencies": {
|
52
|
+
"@theforeman/vendor": ">= 3.3.2"
|
53
53
|
}
|
54
54
|
}
|
@@ -487,34 +487,6 @@ class InputTemplateRendererTest < ActiveSupport::TestCase
|
|
487
487
|
end
|
488
488
|
end
|
489
489
|
end
|
490
|
-
|
491
|
-
context 'with existing variable implemented as smart variable' do
|
492
|
-
let(:puppet_class) do
|
493
|
-
puppetclass = FactoryBot.create(:puppetclass, :environments => [environment])
|
494
|
-
puppetclass.update_attribute(:hosts, [renderer.host])
|
495
|
-
puppetclass
|
496
|
-
end
|
497
|
-
let(:lookup_key) do
|
498
|
-
FactoryBot.create(:variable_lookup_key,
|
499
|
-
:key => 'client_key',
|
500
|
-
:puppetclass => puppet_class,
|
501
|
-
:overrides => {"fqdn=#{renderer.host.fqdn}" => 'RSA KEY'})
|
502
|
-
end
|
503
|
-
|
504
|
-
describe 'rendering' do
|
505
|
-
it 'renders the value from host parameter' do
|
506
|
-
lookup_key
|
507
|
-
result.must_equal 'echo RSA KEY > /etc/chef/client.pem'
|
508
|
-
end
|
509
|
-
end
|
510
|
-
|
511
|
-
describe 'preview' do
|
512
|
-
it 'should render preview' do
|
513
|
-
lookup_key
|
514
|
-
renderer.preview.must_equal 'echo RSA KEY > /etc/chef/client.pem'
|
515
|
-
end
|
516
|
-
end
|
517
|
-
end
|
518
490
|
end
|
519
491
|
|
520
492
|
describe 'preview' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_remote_execution
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Remote Execution team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|