507d54e4c9
* Sync to v5.0.0 (supports Ubuntu 14.04, major SSL fixes) * Fix deprecated in 5.0.0 params * Reimplement waiting/retries in rabbitmq provider (https://tickets.puppetlabs.com/browse/MODULES-1452) * Configure clustering with an erlang cookie hardcode. Also pass the cookie to the OCF script. * Make OCF script always update an erlang cookie, if specified (default false) * Add dependency module: nanliu-staging * Add support for rabbimtq class false value for nova module (https://bugs.launchpad.net/puppet-nova/+bug/1407077) * Do not use nova::rabbitmq to install and configure rabbitmq service anymore, install it separately. (TODO move it as a granular deploy step) * Adjust other existing rabbit class calls for new 5.0.0 rabbit module * Remove deprecated usage of rabbitmq::server class and replace it to ::rabbitmq (cinder, murano, openstack, zabbix, mcollective, nailgun) * Remove rabbit.pub.key and do not manage repos for rabbit package as we have it in nailgun repos and Fuel uses these repos for offline installation of rabbitmq. (Related upstream bug https://tickets.puppetlabs.com/browse/MODULES-1631) * Move custom rabbit OCF file from nova to openstack and remove OS-aware services disable from rabbit's manifests * Make pacemaker provider HA wrapper for rabbitmq service and move it to pacemaker_wrappers::rabbitmq * Fix linting * Fix rabbitmq service name for zabbix mon * Fix env_config for rabbitmq::nailgun, unify RABBIT_* env args. * Use key_content, package_gpg_key, config_*, cluster_*, environment_* params to ensure the same rabbit configuration as before and make offline installation possible. * Add cluster_partition_handling param for openstack::controller * Del unused rabbitmq_node_ip_address and rename as node_ip_address * Del unneeded rabbit_cluster due to it is being evaluated via passed rabbitmq_cluster_nodes as well * Adjust debug log_levels for rabbit config as well * For '$production !~ /docker/' case, remove custom init scripts for rabbit as non relevant anymore. * Enable rspec tests for rabbitmq in utils * Disable rspecs for erlang module. Related blueprint merge-openstack-puppet-modules Related-bug: #1377491 Change-Id: I6e631b975c5835d2d6f1984d5a070a45231fe9ab Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
42 lines
988 B
Puppet
42 lines
988 B
Puppet
# requires
|
|
# puppetlabs-apt
|
|
# puppetlabs-stdlib
|
|
class rabbitmq::repo::apt(
|
|
$location = 'http://www.rabbitmq.com/debian/',
|
|
$release = 'testing',
|
|
$repos = 'main',
|
|
$include_src = false,
|
|
$key = 'F7B8CEA6056E8E56',
|
|
$key_source = 'http://www.rabbitmq.com/rabbitmq-signing-key-public.asc',
|
|
$key_content = undef,
|
|
) {
|
|
|
|
$pin = $rabbitmq::package_apt_pin
|
|
|
|
Class['rabbitmq::repo::apt'] -> Package<| title == 'rabbitmq-server' |>
|
|
|
|
$ensure_source = $rabbitmq::repos_ensure ? {
|
|
false => 'absent',
|
|
default => 'present',
|
|
}
|
|
|
|
apt::source { 'rabbitmq':
|
|
ensure => $ensure_source,
|
|
location => $location,
|
|
release => $release,
|
|
repos => $repos,
|
|
include_src => $include_src,
|
|
key => $key,
|
|
key_source => $key_source,
|
|
key_content => $key_content,
|
|
}
|
|
|
|
if $pin {
|
|
validate_re($pin, '\d\d\d')
|
|
apt::pin { 'rabbitmq':
|
|
packages => 'rabbitmq-server',
|
|
priority => $pin,
|
|
}
|
|
}
|
|
}
|