A Nagios check that connects to PuppetDB and determines the Puppet agent run health on a host.
- PuppetDB
- A puppetmaster configured to send reports to PuppetDB
file_line { 'omniauth_crowd-gem': | |
path => '/opt/gitlab/embedded/service/gitlab-rails/Gemfile', | |
line => 'gem "omniauth_crowd", "2.2.2"', | |
require => Package['gitlab'] | |
} | |
file_line { 'patch-devise-rb': | |
path => '/opt/gitlab/embedded/service/gitlab-rails/config/initializers/devise.rb', | |
line => " provider_arguments << provider['args'].symbolize_keys", | |
match => "^ provider_arguments << provider\\['args'\\]\$", |
#This is the "site config" for nginx | |
upstream django { | |
# Distribute requests to servers based on client IP. This keeps load | |
# balancing fair but consistent per-client. In this instance we're | |
# only using one uWGSI worker anyway. | |
ip_hash; | |
server unix:/tmp/uwsgi.sock; | |
} | |
server { |
[solarized-dark] | |
background = #002b36 | |
foreground = #839496 | |
majorLine = #fdf6e3 | |
minorLine = #eee8d5 | |
lineColors = #268bd2,#859900,#dc322f,#d33682,#db4b16,#b58900,#2aa198,#6c71c4 | |
fontName = Sans | |
fontSize = 10 | |
fontBold = False | |
fontItalic = False |
[default] | |
background = white | |
foreground = black | |
majorLine = grey | |
minorLine = rose | |
lineColors = 0fff00aa,0f337799,0f000077,ff000077 | |
fontName = Helvetica | |
fontSize = 10 | |
fontBold = False | |
fontItalic = False |
<Plugin "processes"> | |
ProcessMatch "carbon-cache" "python.+carbon-cache" | |
ProcessMatch "carbon-aggregator" "python.+carbon-aggregator" | |
</Plugin> |
# example.org private hosts | |
Host example-jumphost | |
Hostname jumphost.example.org | |
Host *.private.example.org *.exmpl | |
StrictHostKeyChecking no | |
ProxyCommand nohup ssh -Ax example-jumphost nc $(echo %h | awk '/^*\.exmpl/ { split($0, a, "."); print a[1] ".private.example.org" } /^*.private.example.org/ { print $0 }') %p |
This is a simple number widget that shows you your current cloud spending for the current month, compared to last month. It is powered by the Cloudability API.
You will need to create and set your Cloudability API key to use this widget. After creating an account, you can obtain an API key here.
This uses the cloudability gem. You will need to add it to your Gemfile and bundle install
<!-- note that this requires the rabbitmq management plugin --> | |
<!-- also requires collectd 5.1 with curl_json plugin support --> | |
<Plugin curl_json> | |
<URL "http://localhost:55672/api/overview"> | |
Instance "rabbitmq_overview" | |
User "guest" | |
Password "guest" | |
<Key "message_stats/publish"> | |
Type "counter" | |
</Key> |
class ChefRunner < FPM::Cookery::Recipe | |
GOPACKAGE = "github.com/mlafeldt/chef-runner" | |
name "chef-runner" | |
version "0.8.0" | |
revision 1 | |
source "https://#{GOPACKAGE}/archive/v#{version}.tar.gz" | |
sha256 "a7de23f989f8353ecf838b551a8ceff09b83c8aeff2553b2c31d57615f8fcc53" | |
description "The fastest way to run Chef cookbooks" |