diff --git a/manifests/init.pp b/manifests/init.pp index 0cdae56b2..7fba34615 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -23,6 +23,7 @@ $package_provider = $rabbitmq::params::package_provider, $package_source = $rabbitmq::params::package_source, $repos_ensure = $rabbitmq::params::repos_ensure, + $manage_repos = $rabbitmq::params::manage_repos, $plugin_dir = $rabbitmq::params::plugin_dir, $port = $rabbitmq::params::port, $tcp_keepalive = $rabbitmq::params::tcp_keepalive, @@ -123,7 +124,11 @@ include '::rabbitmq::service' include '::rabbitmq::management' - if $rabbitmq::manage_repos == true { + if $manage_repos != undef { + warning('$manage_repos is now deprecated. Please use $repos_ensure instead') + } + + if $manage_repos != false { case $::osfamily { 'RedHat', 'SUSE': { include '::rabbitmq::repo::rhel' } diff --git a/manifests/params.pp b/manifests/params.pp index 51ebe181a..36313dcfa 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -53,6 +53,7 @@ $package_apt_pin = '' $package_gpg_key = 'http://www.rabbitmq.com/rabbitmq-signing-key-public.asc' $repos_ensure = true + $manage_repos = undef $service_ensure = 'running' $service_manage = true #config