Created
May 4, 2014 01:00
-
-
Save inokappa/206bbc5276ef6b90d81c to your computer and use it in GitHub Desktop.
Sensu Server をセットアップするマニフェスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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