Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions lib/puppet/functions/katello/build_dn.rb

This file was deleted.

5 changes: 0 additions & 5 deletions manifests/application.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,8 @@
$candlepin_oauth_key = $katello::params::candlepin_oauth_key
$candlepin_oauth_secret = $katello::params::candlepin_oauth_secret
$candlepin_ca_cert = $certs::foreman::ssl_ca_cert
$candlepin_events_ssl_cert = $certs::foreman::client_cert
$candlepin_events_ssl_key = $certs::foreman::client_key
$manage_db = $foreman::db_manage

# Used in Candlepin
$artemis_client_dn = katello::build_dn([['CN', $certs::foreman::hostname], ['OU', $certs::foreman::org_unit], ['O', $certs::foreman::org], ['ST', $certs::foreman::state], ['C', $certs::foreman::country]])

# Katello database seeding needs candlepin
Anchor <| title == 'katello::repo' or title == 'katello::candlepin' |> ->
foreman::plugin { 'katello':
Expand Down
5 changes: 0 additions & 5 deletions manifests/candlepin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
# The CA certificate to verify the SSL connection to the database with
# @param manage_db
# Whether to manage the database. Set this to false when using a remote database
# @param artemis_client_dn
# The Distinguished Name of the client certificate that's allowed to access
# Artemis. It should still be signed by the correct Certificate Authority.
# @param loggers
# Configure the Candlepin loggers
# @param facts_match_regex
Expand All @@ -36,7 +33,6 @@
Boolean $db_ssl_verify = true,
Optional[Stdlib::Absolutepath] $db_ssl_ca = undef,
Boolean $manage_db = true,
Variant[Undef, Deferred, String[1]] $artemis_client_dn = undef,
Hash[String[1], Candlepin::LogLevel] $loggers = {},
Optional[String[1]] $facts_match_regex = undef,
) {
Expand All @@ -60,7 +56,6 @@
keystore_password => $certs::candlepin::keystore_password,
truststore_file => $certs::candlepin::truststore,
truststore_password => $certs::candlepin::truststore_password,
artemis_client_dn => $artemis_client_dn,
java_home => '/usr/lib/jvm/jre-17',
java_package => 'java-17-openjdk',
enable_basic_auth => false,
Expand Down
1 change: 0 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
db_ssl_verify => $candlepin_db_ssl_verify,
db_ssl_ca => $candlepin_db_ssl_ca,
manage_db => $candlepin_manage_db,
artemis_client_dn => $katello::application::artemis_client_dn,
loggers => $candlepin_loggers,
facts_match_regex => $candlepin_facts_match_regex,
}
Expand Down
8 changes: 0 additions & 8 deletions spec/acceptance/candlepin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,4 @@
describe command('curl -k -s -o /dev/null -w \'%{http_code}\' https://localhost:23443/candlepin/status') do
its(:stdout) { should eq "200" }
end

describe file("/usr/share/tomcat/conf/cert-users.properties") do
it { should be_file }
it { should be_mode 640 }
it { should be_owned_by 'tomcat' }
it { should be_grouped_into 'tomcat' }
its(:content) { should eq("katelloUser=CN=ActiveMQ Artemis Client, OU=Artemis, O=ActiveMQ, L=AMQ, ST=AMQ, C=AMQ\n") }
end
end
4 changes: 0 additions & 4 deletions spec/acceptance/katello_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,4 @@
describe command('hammer --version') do
its(:stdout) { is_expected.to match(/^hammer/) }
end

describe file("/usr/share/tomcat/conf/cert-users.properties") do
its(:content) { should eq("katelloUser=CN=#{fact('fqdn')}, OU=PUPPET, O=FOREMAN, ST=North Carolina, C=US\n") }
end
end
4 changes: 0 additions & 4 deletions spec/classes/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ class { 'katello::params':
' :oauth_key: "katello"',
' :oauth_secret: "candlepin-secret"',
' :ca_cert_file: /etc/foreman/proxy_ca.pem',
' :candlepin_events:',
' :ssl_cert_file: /etc/foreman/client_cert.pem',
' :ssl_key_file: /etc/foreman/client_key.pem',
' :ssl_ca_file: /etc/foreman/proxy_ca.pem',
]
end

Expand Down
1 change: 0 additions & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
let(:facts) { facts }

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_class('katello::candlepin').with_artemis_client_dn('CN=foo.example.com, OU=PUPPET, O=FOREMAN, ST=North Carolina, C=US') }
it { is_expected.to contain_class('katello::application') }
it { is_expected.to contain_package('rubygem-katello').that_requires('Class[candlepin]') }
it { is_expected.to contain_package('katello') }
Expand Down
19 changes: 0 additions & 19 deletions spec/functions/katello_build_dn_spec.rb

This file was deleted.

5 changes: 0 additions & 5 deletions templates/katello.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@
:oauth_key: "<%= @candlepin_oauth_key %>"
:oauth_secret: "<%= @candlepin_oauth_secret %>"
:ca_cert_file: <%= @candlepin_ca_cert %>

:candlepin_events:
:ssl_cert_file: <%= @candlepin_events_ssl_cert %>
:ssl_key_file: <%= @candlepin_events_ssl_key %>
:ssl_ca_file: <%= @candlepin_ca_cert %>