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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baca1c0db4920eebade72c0306bcff04181cc82bd10f81092f633e8e811a12f3
4
- data.tar.gz: 6645d8d58885bb78c1416f9ec0d6ba3e3e1aec59fad2f685d7bd653f70da0847
3
+ metadata.gz: b508796a09bd44e8ded07627d4f73d9ca5f2f2ee7576ab2dab2bca47d2247f0f
4
+ data.tar.gz: f5dfc0b4375e2ab8e14675f1f7c2c1d4e1b7906a9fe2d66a3a1aa387d678af59
5
5
  SHA512:
6
- metadata.gz: afe9c5a6fb8855cfa829a7eeefec2c2d2e58d09567860c431d7ce248c2780dd000a859667bc007bb4812f0f006541e579c9bb7f59e3b1d371df8fb8d7bb61b48
7
- data.tar.gz: 82c774626c9c87931bd96d4557e51c4a8c6031314bc5ba9c4bc26256868467bda035217485162a69f4304e17a34fe15978440688203c47b8adbe5ec297a21612
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, ForemanRemoteExecutionCore::Actions::RunScript, action_options)
49
+ plan_delegated_action(proxy, provider.proxy_action_class, action_options)
50
50
  plan_self
51
51
  end
52
52
 
@@ -92,5 +92,9 @@ class RemoteExecutionProvider
92
92
  def ssh_password(_host) end
93
93
 
94
94
  def ssh_key_passphrase(_host) end
95
+
96
+ def proxy_action_class
97
+ ForemanRemoteExecutionCore::Actions::RunScript
98
+ end
95
99
  end
96
100
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '3.0.1'.freeze
2
+ VERSION = '3.0.2'.freeze
3
3
  end
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": "^3.3.2",
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
- "dependencies": {
52
- "@theforeman/vendor": "^3.3.2"
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.1
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: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2020-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface