puppet-pulp/manifests/init.pp @ 45e7e8a3
e22f1da6 | Sam Kottler | # == Class: pulp
|
|
#
|
|||
# Install and configure pulp
|
|||
#
|
|||
# === Parameters:
|
|||
#
|
|||
# $oauth_key:: The oauth key; defaults to pulp
|
|||
#
|
|||
# $oauth_secret:: The oauth secret; defaults to secret
|
|||
#
|
|||
# $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_clientcert:: The client certificate signed by the CA cert
|
|||
# above to authenticate.
|
|||
#
|
|||
# $consumers_ca_cert:: The CA cert that the consumer will use to
|
|||
# authenticate with the AMQP server.
|
|||
#
|
|||
b2a4400b | Eric D. Helms | # $consumers_ca_key:: The CA key that the consumer will use to authenticate
|
|
# with the AMQP server.
|
|||
#
|
|||
e22f1da6 | Sam Kottler | # $consumers_crl:: Certificate revocation list for consumers which
|
|
# are no valid (have had their client certs
|
|||
# revoked)
|
|||
#
|
|||
# $ssl_ca_cert:: The SSL cert that will be used by Pulp to
|
|||
# verify the connection
|
|||
#
|
|||
# $default_login:: Initial login; defaults to admin
|
|||
#
|
|||
# $default_password:: Initial password; defaults to admin
|
|||
#
|
|||
# $repo_auth:: Boolean to determine whether repos managed by
|
|||
# pulp will require authentication. Defaults
|
|||
# to true
|
|||
#
|
|||
# $reset_data:: Boolean to reset the data in MongoDB. Defaults
|
|||
# to false
|
|||
#
|
|||
# $reset_cache:: Boolean to flush the cache. Defaults to false
|
|||
b2a4400b | Eric D. Helms | #
|
|
3b030c03 | Ivan Necas | class pulp (
|
|
$oauth_key = $pulp::params::oauth_key,
|
|||
$oauth_secret = $pulp::params::oauth_secret,
|
|||
$messaging_url = $pulp::params::messaging_url,
|
|||
$messaging_cacert = undef,
|
|||
$messaging_clientcert = undef,
|
|||
45e7e8a3 | Eric D. Helms | $consumers_ca_cert = $consumers_ca_cert,
|
|
$consumers_ca_key = $consumers_ca_key,
|
|||
3b030c03 | Ivan Necas | $consumers_crl = undef,
|
|
$ssl_ca_cert = '/etc/pki/tls/certs/pulp_ssl_cert.crt',
|
|||
$default_login = $pulp::params::default_login,
|
|||
$default_password = $pulp::params::default_password,
|
|||
$repo_auth = true,
|
|||
$reset_data = false,
|
|||
$reset_cache = false
|
|||
) inherits pulp::params {
|
|||
include apache
|
|||
45e7e8a3 | Eric D. Helms | class { 'mongodb':
|
|
3b030c03 | Ivan Necas | logpath => '/var/lib/mongodb/mongodb.log',
|
|
45e7e8a3 | Eric D. Helms | dbpath => '/var/lib/mongodb',
|
|
3b030c03 | Ivan Necas | }
|
|
45e7e8a3 | Eric D. Helms | class { 'qpid': }
|
|
3b030c03 | Ivan Necas | ||
class { 'pulp::install':
|
|||
require => [Class['mongodb'], Class['qpid']]
|
|||
} ~>
|
|||
class { 'pulp::config':
|
|||
require => [Class['mongodb'], Class['qpid']]
|
|||
} ~>
|
|||
Service['httpd']
|
|||
->
|
|||
Class[pulp]
|
|||
}
|