Skip to content

Instantly share code, notes, and snippets.

@gdhgdhgdh
Created November 24, 2014 22:49
Show Gist options
  • Save gdhgdhgdh/e87cddfd23f36cbe5cef to your computer and use it in GitHub Desktop.
Save gdhgdhgdh/e87cddfd23f36cbe5cef to your computer and use it in GitHub Desktop.
Sensu on a single Vagrant box
node default {
class { 'selinux':
mode => 'disabled',
}
class { 'epel' : }
class { 'rabbitmq':
require => Class['epel'],
}
rabbitmq_vhost { '/sensu': }
rabbitmq_user { 'sensu': password => 'password' }
rabbitmq_user_permissions { 'sensu@/sensu':
configure_permission => '.*',
read_permission => '.*',
write_permission => '.*',
}
class {'redis':
require => Class['epel'],
}
class {'sensu':
server => true,
purge_config => true,
rabbitmq_password => 'password',
rabbitmq_host => 'localhost',
subscriptions => 'sensu-test',
}
class {'uchiwa':
install_repo => false,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment