Skip to content

Instantly share code, notes, and snippets.

View ghoneycutt's full-sized avatar

Garrett Honeycutt ghoneycutt

View GitHub Profile
@ghoneycutt
ghoneycutt / site.pp
Created November 27, 2017 01:48
Puppet site manifest for Sensu server
# /etc/puppetlabs/code/environments/development/manifests/site.pp
# replace `sensu-server.example.com` with the FQDN of the system.
node 'sensu-server.example.com' {
## Begin dependencies for Sensu server
require ::epel
$dependencies = [
'nagios-plugins-ntp', # Not strictly needed. Used to demo a check.
@ghoneycutt
ghoneycutt / sensu-client.pp
Created November 27, 2017 02:19
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,
}
@ghoneycutt
ghoneycutt / hosts.md
Created May 2, 2018 21:13
default /etc/hosts

macos

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost