Skip to content

Commit

Permalink
Fixes #34708 - configure certs for the katello agent broker
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and ehelms committed Apr 1, 2022
1 parent 6f5794b commit d5cad7f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/application.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
# Used in katello.yaml.erb
$agent_broker_url = $katello::params::qpid_url
$agent_event_queue_name = $katello::params::agent_event_queue_name
$agent_broker_client_key = $certs::foreman::client_key
$agent_broker_client_cert = $certs::foreman::client_cert
$agent_broker_ca_cert = $certs::ca_cert
$enable_katello_agent = $katello::params::enable_katello_agent
$candlepin_url = $katello::params::candlepin_url
$candlepin_oauth_key = $katello::params::candlepin_oauth_key
Expand Down
6 changes: 6 additions & 0 deletions spec/classes/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ class {'katello::globals':
' :agent:',
' :enabled: true',
' :broker_url: amqps://localhost:5671',
' :broker_ssl_cert_file: /etc/foreman/client_cert.pem',
' :broker_ssl_key_file: /etc/foreman/client_key.pem',
' :broker_ssl_ca_file: /etc/pki/katello/certs/katello-default-ca.crt',
' :event_queue_name: katello.agent',
]
end
Expand Down Expand Up @@ -195,6 +198,9 @@ class {'katello::globals':
' :agent:',
' :enabled: true',
' :broker_url: amqps://localhost:5671',
' :broker_ssl_cert_file: /etc/foreman/client_cert.pem',
' :broker_ssl_key_file: /etc/foreman/client_key.pem',
' :broker_ssl_ca_file: /etc/pki/katello/certs/katello-default-ca.crt',
' :event_queue_name: katello.agent',
]
end
Expand Down
3 changes: 3 additions & 0 deletions templates/katello.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
:enabled: <%= @enable_katello_agent %>
<%- if @enable_katello_agent -%>
:broker_url: <%= @agent_broker_url %>
:broker_ssl_cert_file: <%= @agent_broker_client_cert %>
:broker_ssl_key_file: <%= @agent_broker_client_key %>
:broker_ssl_ca_file: <%= @agent_broker_ca_cert %>
:event_queue_name: <%= @agent_event_queue_name %>
<%- end -%>

0 comments on commit d5cad7f

Please sign in to comment.