Revision 75340167
Added by Ivan Necas over 10 years ago
manifests/init.pp | ||
---|---|---|
# $messaging_url:: URL for the AMQP server that Pulp will use to
|
||
# communicate with nodes.
|
||
#
|
||
# $messaging_cacert:: The CA cert to authenicate against the AMQP server.
|
||
# $messaging_ca_cert: The CA cert to authenicate against the AMQP server.
|
||
#
|
||
# $messaging_clientcert:: The client certificate signed by the CA cert
|
||
# $messaging_client_cert:: The client certificate signed by the CA cert
|
||
# above to authenticate.
|
||
#
|
||
# $consumers_ca_cert:: The CA cert that the consumer will use to
|
||
... | ... | |
$oauth_secret = $pulp::params::oauth_secret,
|
||
|
||
$messaging_url = $pulp::params::messaging_url,
|
||
$messaging_cacert = undef,
|
||
$messaging_clientcert = undef,
|
||
$messaging_ca_cert = $pulp::params::messaging_ca_cert,
|
||
$messaging_client_cert = $pulp::params::messaging_client_cert,
|
||
|
||
$consumers_ca_cert = $consumers_ca_cert,
|
||
$consumers_ca_key = $consumers_ca_key,
|
||
... | ... | |
class { 'mongodb':
|
||
logpath => '/var/lib/mongodb/mongodb.log',
|
||
dbpath => '/var/lib/mongodb',
|
||
}
|
||
class { 'qpid': }
|
||
|
||
} ~>
|
||
class { 'qpid':
|
||
ssl => true,
|
||
} ~>
|
||
class { 'pulp::install':
|
||
require => [Class['mongodb'], Class['qpid']]
|
||
} ~>
|
manifests/params.pp | ||
---|---|---|
$oauth_secret = 'secret'
|
||
|
||
$messaging_url = 'tcp://localhost:5672'
|
||
$messaging_ca_cert = '/usr/share/katello/candlepin-ca.crt'
|
||
$messaging_client_cert = '/etc/pki/pulp/qpid_client_striped.crt'
|
||
|
||
$consumers_ca_cert = '/etc/pki/pulp/ca.crt'
|
||
$consumers_ca_key = '/etc/pki/pulp/ca.key'
|
manifests/parent/certs.pp | ||
---|---|---|
$regenerate = $::certs::regenerate,
|
||
$deploy = $::certs::deploy,
|
||
$ca = $::certs::default_ca,
|
||
$nodes_cert = '/etc/pki/pulp/nodes/node.crt'
|
||
) {
|
||
$nodes_cert = '/etc/pki/pulp/nodes/node.crt',
|
||
$messaging_ca_cert = $pulp::params::messaging_ca_cert,
|
||
$messaging_client_cert = $pulp::params::messaging_client_cert
|
||
) inherits pulp::params {
|
||
|
||
# cert for nodes authenitcation
|
||
cert { "${pulp::parent::certs::hostname}-parent-cert":
|
||
... | ... | |
deploy => $deploy,
|
||
}
|
||
|
||
cert { "${pulp::parent::certs::hostname}-qpid-client-cert":
|
||
hostname => $pulp::parent::certs::hostname,
|
||
common_name => 'pulp-qpid-client-cert',
|
||
purpose => client,
|
||
country => $::certs::country,
|
||
state => $::certs::state,
|
||
city => $::certs::sity,
|
||
org => 'PULP',
|
||
org_unit => $::certs::org_unit,
|
||
expiration => $::certs::expiration,
|
||
ca => $ca,
|
||
generate => $generate,
|
||
regenerate => $regenerate,
|
||
deploy => $deploy,
|
||
}
|
||
|
||
if $deploy {
|
||
key_bundle { $pulp::parent::certs::nodes_cert:
|
||
cert => Cert["${pulp::parent::certs::hostname}-parent-cert"],
|
||
}
|
||
|
||
key_bundle { $messaging_client_cert:
|
||
cert => Cert["${pulp::parent::certs::hostname}-qpid-client-cert"],
|
||
} ~>
|
||
file { $messaging_client_cert:
|
||
owner => 'apache',
|
||
group => 'apache',
|
||
mode => '0640',
|
||
}
|
||
}
|
||
}
|
templates/etc/pulp/server.conf.erb | ||
---|---|---|
|
||
[messaging]
|
||
url: <%= @messaging_url %>
|
||
<% if @cacert -%>
|
||
cacert: <%= @cacert %>
|
||
<% if @messaging_ca_cert -%>
|
||
cacert: <%= @messaging_ca_cert %>
|
||
<% end -%>
|
||
<% if @clientcert -%>
|
||
clientcert: <%= @clientcert %>
|
||
<% if @messaging_client_cert -%>
|
||
clientcert: <%= @messaging_client_cert %>
|
||
<% end -%>
|
||
topic_exchange: 'amq.topic'
|
||
install_timeout: 36h:3d
|
Also available in: Unified diff
Make pulp working with qpid