components/ruby/puppet-modules/puppetlabs-rabbitmq/patches/02-params.patch
author Patrick Einheber <patrick.einheber@oracle.com>
Wed, 27 Apr 2016 14:55:10 -0700
changeset 5860 afd31ba91ee9
parent 5776 f6fa335ae47b
permissions -rw-r--r--
23146903 Puppet and OpenStack modules need modification notices

Patch to add Solaris support.  This patch has not yet been submitted
upstream.

--- puppetlabs-rabbitmq-5.3.1/manifests/params.pp.orig	2016-04-20 13:36:29.896159874 -0700
+++ puppetlabs-rabbitmq-5.3.1/manifests/params.pp	2016-04-20 13:41:31.538412172 -0700
@@ -1,3 +1,7 @@
+#######################################################################
+# Oracle has modified the originally distributed contents of this file.
+#######################################################################
+
   # Class: rabbitmq::params
 #
 #   The RabbitMQ Module configuration settings.
@@ -58,6 +62,17 @@
       $rabbitmq_home    = '/var/lib/rabbitmq'
       $plugin_dir       = "/usr/lib/rabbitmq/lib/rabbitmq_server-${version}/plugins"
     }
+    'Solaris': {
+      $package_ensure   = 'installed'
+      $package_name     = 'network/amqp/rabbitmq'
+      $service_name     = 'application/rabbitmq:default'
+      $package_provider = 'pkg'
+      $version          = '3.6.1'
+      $rabbitmq_user    = 'rabbitmq'
+      $rabbitmq_group   = 'daemon'
+      $rabbitmq_home    = '/var/lib/rabbitmq'
+      $plugin_dir       = '/usr/lib/rabbitmq/plugins'
+    }
     default: {
       fail("The ${module_name} module is not supported on an ${::osfamily} based system.")
     }