puppet-qpid/manifests/init.pp @ 3c974f0c
bd9c602e | Eric D. Helms | # == Class: qpid
|
|
#
|
|||
c0c8e9a4 | Stephen Benjamin | # Install and configure Qpid
|
|
bd9c602e | Eric D. Helms | #
|
|
# === Parameters:
|
|||
c0c8e9a4 | Stephen Benjamin | # $auth:: Use SASL authentication
|
|
# type:boolean
|
|||
bd9c602e | Eric D. Helms | #
|
|
c0c8e9a4 | Stephen Benjamin | # $config_file:: Location of qpid configuration file
|
|
# type:string
|
|||
bd9c602e | Eric D. Helms | #
|
|
c0c8e9a4 | Stephen Benjamin | # $log_level:: Logging level
|
|
# type:string
|
|||
#
|
|||
2e903697 | Chris Duryee | # $log_to_syslog:: Log to syslog or not
|
|
c0c8e9a4 | Stephen Benjamin | # type:boolean
|
|
#
|
|||
3c974f0c | Stephen Benjamin | # $interface:: Interface to listen on
|
|
#
|
|||
c0c8e9a4 | Stephen Benjamin | # $ssl:: Use SSL with Qpid
|
|
# type:boolean
|
|||
#
|
|||
# $ssl_port:: SSL port to use
|
|||
# type:string
|
|||
bd9c602e | Eric D. Helms | #
|
|
# $ssl_cert_db:: The SSL cert database to use
|
|||
c0c8e9a4 | Stephen Benjamin | # type:string
|
|
bd9c602e | Eric D. Helms | #
|
|
# $ssl_cert_password_file:: The SSL cert password file
|
|||
c0c8e9a4 | Stephen Benjamin | # type:string
|
|
bd9c602e | Eric D. Helms | #
|
|
# $ssl_cert_name:: The SSL cert name
|
|||
c0c8e9a4 | Stephen Benjamin | # type:string
|
|
#
|
|||
# $ssl_require_client_auth:: Require client SSL authentication
|
|||
# type:boolean
|
|||
bd9c602e | Eric D. Helms | #
|
|
# $user_groups:: Additional user groups to add the qpidd user to
|
|||
c0c8e9a4 | Stephen Benjamin | # type:array
|
|
bd9c602e | Eric D. Helms | #
|
|
550cf567 | Arnold Bechtoldt | # $server_packages:: List of server packages to install
|
|
# type:array
|
|||
#
|
|||
e1852768 | Ivan Necas | class qpid (
|
|
c0c8e9a4 | Stephen Benjamin | $auth = $qpid::params::auth,
|
|
$config_file = $qpid::params::config_file,
|
|||
$log_level = $qpid::params::log_level,
|
|||
$log_to_syslog = $qpid::params::log_to_syslog,
|
|||
3c974f0c | Stephen Benjamin | $interface = $qpid::params::interface,
|
|
c0c8e9a4 | Stephen Benjamin | $ssl = $qpid::params::ssl,
|
|
$ssl_port = $qpid::params::ssl_port,
|
|||
$ssl_cert_db = $qpid::params::ssl_cert_db,
|
|||
$ssl_cert_password_file = $qpid::params::ssl_cert_password_file,
|
|||
$ssl_cert_name = $qpid::params::ssl_cert_name,
|
|||
$ssl_require_client_auth = $qpid::params::ssl_require_client_auth,
|
|||
$user_groups = $qpid::params::user_groups,
|
|||
550cf567 | Arnold Bechtoldt | $server_packages = $qpid::params::server_packages,
|
|
c0c8e9a4 | Stephen Benjamin | ) inherits qpid::params {
|
|
bd9c602e | Eric D. Helms | ||
c0c8e9a4 | Stephen Benjamin | validate_string($log_level)
|
|
validate_bool($ssl, $auth, $log_to_syslog)
|
|||
validate_array($user_groups)
|
|||
550cf567 | Arnold Bechtoldt | validate_array($server_packages)
|
|
bd9c602e | Eric D. Helms | ||
c0c8e9a4 | Stephen Benjamin | if $ssl {
|
|
validate_bool($ssl_require_client_auth)
|
|||
validate_re($ssl_port, '^\d+$')
|
|||
validate_string($ssl_cert_name)
|
|||
validate_absolute_path($ssl_cert_db, $ssl_cert_password_file)
|
|||
}
|
|||
e1852768 | Ivan Necas | ||
be4b7562 | Eric D. Helms | class { '::qpid::install': } ~>
|
|
class { '::qpid::config': } ~>
|
|||
class { '::qpid::service': } ->
|
|||
e1852768 | Ivan Necas | Class['qpid']
|
|
}
|