Skip to content

Instantly share code, notes, and snippets.

@inokappa
Created May 4, 2014 01:00
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 inokappa/206bbc5276ef6b90d81c to your computer and use it in GitHub Desktop.
Save inokappa/206bbc5276ef6b90d81c to your computer and use it in GitHub Desktop.
Sensu Server をセットアップするマニフェスト
node default {
yumrepo { "epel":
mirrorlist => 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch',
enabled => 1,
gpgcheck => 0
}
#
$packages = [ "erlang" ]
package { $packages:
ensure =>"installed",
require => yumrepo[epel]
}
class { 'redis': }
class { 'rabbitmq': }
rabbitmq_vhost { '/sensu': }
rabbitmq_user { 'sensu': password => '${your_password}' }
rabbitmq_user_permissions { 'sensu@/sensu':
configure_permission => '.*',
read_permission => '.*',
write_permission => '.*',
}
class { 'sensu':
server => true,
dashboard => true,
api => true,
plugins => [
],
purge_config => true,
#
rabbitmq_password => '${your_password}',
rabbitmq_host => 'localhost',
#
subscriptions => 'sensu-test',
client_name => "${hostname}",
client_address => 'localhost'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment