Skip to content

Instantly share code, notes, and snippets.

@ghoneycutt
Created November 27, 2017 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghoneycutt/9eb72c20e173d69f4676ae1cd538da9b to your computer and use it in GitHub Desktop.
Save ghoneycutt/9eb72c20e173d69f4676ae1cd538da9b to your computer and use it in GitHub Desktop.
Puppet code snippet to be used on any system acting as a sensu client
# If using a multihomed system, you may need to change the interface
$ip = $facts['networking']['interfaces']['eth1']['ip']
class { '::sensu':
rabbitmq_password => 'correct-horse-battery-staple',
rabbitmq_host => '192.168.56.10',
rabbitmq_vhost => '/sensu',
subscriptions => 'all',
client_address => $ip,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment