|
242 | 242 | # Name of the package required by rabbitmqadmin. |
243 | 243 | # @param repos_ensure |
244 | 244 | # Ensure that a repo with the official (and newer) RabbitMQ package is configured, along with its signing key. |
245 | | -# Defaults to false (use system packages). This does not ensure that soft dependencies (like EPEL on RHEL systems) are present. |
246 | | -# It also does not solve the erlang dependency. See https://www.rabbitmq.com/which-erlang.html for a good breakdown of the |
247 | | -# different ways of handling the erlang deps. See also https://github.com/voxpupuli/puppet-rabbitmq/issues/788 |
248 | | -# @param require_epel |
249 | | -# If this parameter is set, On CentOS / RHEL 7 systems, require the "puppet/epel" module |
| 245 | +# Defaults to false (use system packages). This does not ensure that soft dependencies are present. |
| 246 | +# It also does not solve the erlang dependency. See https://www.rabbitmq.com/which-erlang.html for a good breakdown of the |
| 247 | +# different ways of handling the erlang deps. See also https://github.com/voxpupuli/puppet-rabbitmq/issues/788 |
250 | 248 | # @param service_ensure |
251 | 249 | # The state of the service. |
252 | 250 | # @param service_manage |
|
461 | 459 | Array $archive_options = [], |
462 | 460 | Array $loopback_users = ['guest'], |
463 | 461 | Boolean $service_restart = true, |
464 | | - Boolean $require_epel = true, |
465 | 462 | ) { |
466 | 463 | if $ssl_only and ! $ssl { |
467 | 464 | fail('$ssl_only => true requires that $ssl => true') |
|
516 | 513 | default: { |
517 | 514 | } |
518 | 515 | } |
519 | | - } elsif ($facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '7') and $require_epel { |
520 | | - # On later CentOS / RHEL systems, this is not useful since EPEL doesn't |
521 | | - # have the rabbitmq-server package anyway. |
522 | | - # |
523 | | - # Once support for 7 is dropped, we should remove this code and the |
524 | | - # parameter |
525 | | - require epel |
| 516 | + } elsif $facts['os']['family'] == 'RedHat' { |
| 517 | + package { 'centos-release-rabbitmq-38': |
| 518 | + ensure => 'present', |
| 519 | + } |
526 | 520 | } |
527 | 521 |
|
528 | 522 | contain rabbitmq::install |
|
0 commit comments