Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
  rabbitmq_policy { 'ha-sensu@/sensu':
    pattern    => '^(results$|keepalives$)',
    definition => {
      'ha-mode'      => 'all',
      'ha-sync-mode' => 'automatic',
    },
  }

client / server

 

Code Block
$rabbithosts = hiera('profile::rabbitmq::servers')   # Hiera list of strings
$rabbit_cluster = $rabbithosts.map |$host| {
    {
      port      => 5672,
      host      => $host,
      user      => 'sensu',
      password  => $sensurabbitpass,
      vhost     => '/sensu',
      heartbeat => 2,
      prefetch  => 1,
    }
  }
class { '::sensu':
    rabbitmq_cluster             => $rabbit_cluster,
    ...
}