diff --git a/manifests/init.pp b/manifests/init.pp index b5d6e257..76c24060 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -97,7 +97,12 @@ key => $certs::apache::apache_key, ca_cert => $certs::ca_cert, } ~> - class { 'qpid::client': } ~> + class { 'qpid::client': + ssl => true, + ssl_cert_name => 'broker', + ssl_cert_db => $certs::nss_db_dir, + ssl_cert_password_file => $certs::qpid::nss_db_password_file, + } ~> class { 'katello::qpid': client_cert => $certs::qpid::client_cert, client_key => $certs::qpid::client_key, diff --git a/spec/classes/katello_spec.rb b/spec/classes/katello_spec.rb index 66aebfa3..2e910441 100644 --- a/spec/classes/katello_spec.rb +++ b/spec/classes/katello_spec.rb @@ -20,6 +20,12 @@ it { should contain_class('katello::config') } it { should contain_class('katello::service') } + it "should configure a qpid client" do + should contain_class('qpid::client'). + with(:ssl => true, + :ssl_cert_name => 'broker') + end + context 'on setting cdn-ssl-version' do let :params do {