Skip to content

Commit

Permalink
Merge pull request #9 from awood/master
Browse files Browse the repository at this point in the history
Update Candlepin configuration
  • Loading branch information
ehelms committed Jul 1, 2014
2 parents a5bc5ea + 4a3d73a commit e940ba2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@

$ca_key = $candlepin::params::ca_key,
$ca_cert = $candlepin::params::ca_crt,
$ca_key_password = $candlepin::params::ca_key_password
$ca_key_password = $candlepin::params::ca_key_password,
$qpid_ssl_port = $candlepin::params::qpid_ssl_port

) inherits candlepin::params {

$weburl = "https://${::fqdn}/${candlepin::deployment_url}/distributors?uuid="
$apiurl = "https://${::fqdn}/${candlepin::deployment_url}/api/distributors/"
$amqpurl = "tcp://${::fqdn}:${qpid_ssl_port}?ssl='true'&ssl_cert_alias='amqp-client'"

class { 'candlepin::install': } ~>
class { 'candlepin::config': } ~>
Expand Down
4 changes: 4 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

# this comes from keystore
$db_password = cache_data('candlepin_db_password', random_password(32))
$amqp_keystore_password = $::certs::candlepin::keystore_password
$amqp_truststore_password = $::certs::candlepin::keystore_password

# where to store output from cpsetup execution
$log_dir = '/var/log/candlepin'
Expand All @@ -39,4 +41,6 @@

$deployment_url = 'candlepin'

$qpid_ssl_port = 5671

}
5 changes: 5 additions & 0 deletions templates/candlepin.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ candlepin.auth.trusted.enable = false
candlepin.enable_cert_v3=true
candlepin.export.prefix.weburl=<%= @weburl %>
candlepin.export.prefix.apiurl=<%= @apiurl %>
# enable events via AMQP
candlepin.amqp.enable=true
candlepin.amqp.connect=<%= @amqpurl %>
candlepin.amqp.keystore_password=<%= @amqp_keystore_password %>
candlepin.amqp.truststore_password=<%= @amqp_truststore_password %>
<% if @oauth_key != "" -%>
module.config.katello=org.candlepin.katello.KatelloModule
Expand Down
4 changes: 1 addition & 3 deletions templates/tomcat/server.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA,
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA,
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA,
TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA,
TLS_ECDH_anon_WITH_AES_128_CBC_SHA,
TLS_ECDH_anon_WITH_AES_256_CBC_SHA"
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"
truststorePass="<%= scope.lookupvar("candlepin::keystore_password") %>" />

<!-- Define an AJP 1.3 Connector on port 8009 -->
Expand Down
4 changes: 1 addition & 3 deletions templates/tomcat6/server.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA,
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA,
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA,
TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA,
TLS_ECDH_anon_WITH_AES_128_CBC_SHA,
TLS_ECDH_anon_WITH_AES_256_CBC_SHA"
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"
truststorePass="<%= scope.lookupvar("candlepin::keystore_password") %>" />

<!-- Define an AJP 1.3 Connector on port 8009 -->
Expand Down

0 comments on commit e940ba2

Please sign in to comment.