Skip to content

Commit

Permalink
Fixes #28200 - Change cockpit port from 9999 to 19090
Browse files Browse the repository at this point in the history
This adjusts the installer to match changes done in the REX PR[1].

[1] - theforeman/foreman_remote_execution#441
  • Loading branch information
adamruzicka authored and ekohl committed Nov 5, 2019
1 parent 4dcc53f commit b240a59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifests/plugin/remote_execution/cockpit.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
$foreman_url = $foreman::foreman_url
$cockpit_path = '/webcon'
$cockpit_host = '127.0.0.1'
$cockpit_port = 9999
$cockpit_port = 19090
$cockpit_config = {
'foreman_url' => $foreman_url,
'ssl_ca_file' => $foreman::server_ssl_chain,
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/foreman_rex_cockpit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class { 'foreman':
it { is_expected.to be_listening }
end

describe port(9999) do
describe port(19090) do
it { is_expected.to be_listening.on('127.0.0.1').with('tcp') }
end

Expand Down
4 changes: 2 additions & 2 deletions spec/classes/plugin/remote_execution_cockpit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class {'foreman':
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:9999/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:9999/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
end
end
end
Expand Down

0 comments on commit b240a59

Please sign in to comment.