Resource Type: rabbitmq_binding

Defined in:
lib/puppet/type/rabbitmq_binding.rb
Providers:
rabbitmqadmin

Overview

Native type for managing rabbitmq bindings

rabbitmq_binding { ‘binding 1’:

ensure           => present,
source           => 'myexchange',
destination      => 'myqueue',
vhost            => 'myvhost',
user             => 'dan',
password         => 'bar',
destination_type => 'queue',
routing_key      => 'key1',
arguments        => {},

}

rabbitmq_binding { ‘binding 2’:

ensure           => present,
source           => 'myexchange',
destination      => 'myqueue',
vhost            => 'myvhost',
user             => 'dan',
password         => 'bar',
destination_type => 'queue',
routing_key      => 'key2',
arguments        => {},

}

Examples:

Create a rabbitmq_binding

rabbitmq_binding { 'myexchange@myqueue@myvhost':
  user             => 'dan',
  password         => 'bar',
  destination_type => 'queue',
  routing_key      => '#',
  arguments        => {},
  ensure           => present,
}

Create bindings with same source / destination / vhost but different routing key using individual parameters

Properties

  • arguments

    binding arguments

  • destination (namevar)

    destination of binding

    Supported values:
    • %r{^\S+$}
  • destination_type (defaults to: queue)

    binding destination_type

    Supported values:
    • %r{queue|exchange}
  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • routing_key (namevar)

    binding routing_key

    Supported values:
    • %r{^\S*$}
  • source (namevar)

    source of binding

    Supported values:
    • %r{^\S+$}
  • vhost (namevar) (defaults to: /)

    vhost

    Supported values:
    • %r{^\S+$}

Parameters

  • name (namevar)

    resource name, either source@destination@vhost or arbitrary name with params

  • password (defaults to: guest)

    The password to use to connect to rabbitmq

    Supported values:
    • %r{\S+}
  • provider

    The specific backend to use for this ‘rabbitmq_binding` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • user (defaults to: guest)

    The user to use to connect to rabbitmq

    Supported values:
    • %r{^\S+$}