Skip to content

Commit

Permalink
Fixes #17380: Configure ca_cert_file for Candlepin communication
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Nov 18, 2016
1 parent 406a6f1 commit 744426d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
validate_bool($enable_ostree)
validate_absolute_path($repo_export_dir)

$candlepin_ca_cert = $::certs::ca_cert

Class['certs'] ~>
class { '::certs::apache': } ~>
class { '::katello::install': } ~>
Expand Down
2 changes: 2 additions & 0 deletions spec/classes/katello_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
' :url: https://foo.example.com:8443/candlepin',
' :oauth_key: katello',
' :oauth_secret: secret',
' :ca_cert_file: /etc/pki/katello/certs/katello-default-ca.crt',
' :pulp:',
" :url: https://#{facts[:fqdn]}/pulp/api/v2/",
' :oauth_key: katello',
Expand Down Expand Up @@ -70,6 +71,7 @@
' :url: https://foo.example.com:8443/candlepin',
' :oauth_key: katello',
' :oauth_secret: secret',
' :ca_cert_file: /etc/pki/katello/certs/katello-default-ca.crt',
' :pulp:',
" :url: https://#{facts[:fqdn]}/pulp/api/v2/",
' :oauth_key: katello',
Expand Down
1 change: 1 addition & 0 deletions templates/katello.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
:url: <%= scope['katello::candlepin_url'] %>
:oauth_key: <%= scope['katello::oauth_key'] %>
:oauth_secret: <%= scope['katello::oauth_secret'] %>
:ca_cert_file: <%= scope['katello::candlepin_ca_cert'] %>

:pulp:
:url: <%= scope['katello::pulp_url'] %>
Expand Down

0 comments on commit 744426d

Please # to comment.