Skip to content

Instantly share code, notes, and snippets.

roblayton / client.cfg
Last active Aug 29, 2015
Example Shiken /etc/shinken/hosts/client.cfg file
View client.cfg
define host {
use linux-snmp,ftp,ssh
host_name hostname2
roblayton / localhost.cfg
Last active Aug 29, 2015
An example Shinken /etc/shinken/hosts/localhost.cfg file
View localhost.cfg
define host{
use linux,ssh
contact_groups admins
host_name localhost
address localhost
roblayton / webui.cfg
Last active Aug 29, 2015
Example Shinken /etc/shinken/modules/webui.cfg file
View webui.cfg
## Module: webui
## Loaded by: Broker
# The Shinken web interface and integrated web server.
define module {
module_name webui
module_type webui
host ; All interfaces =
port 7767
auth_secret CHANGE_ME ; CHANGE THIS or someone could forge cookies
allow_html_output 1 ; Allow or not HTML chars in plugins output.
roblayton / broker-master.cfg
Created Jul 12, 2015
Example Shinken /etc/shinken/brokers/broker-master.cfg file
View broker-master.cfg
# BROKER (S1_Broker)
# Description: The broker is responsible for:
# - Exporting centralized logs of all Shinken daemon processes
# - Exporting status data
# - Exporting performance data
# - Exposing Shinken APIs:
# - Status data
# - Performance data
roblayton / nginx.service
Last active Aug 29, 2015
An example NGiNX service for Systemd
View nginx.service
ExecStart=/usr/bin/docker run --name mynginx -p 8080:80 nginx
roblayton / hello-01.service
Last active Aug 29, 2015
An example hello world service for Systemd
View hello-01.service
Description="Hello Service 01"
ExecStartPre=-/usr/bin/docker kill busybox1
ExecStartPre=-/usr/bin/docker rm busybox1
ExecStartPre=-/usr/bin/docker pull busybox
roblayton / example.service
Created Jul 6, 2015
An example systemd service
View example.service
Description="My Service"
ExecStart=/usr/bin/printf "Service trigger"
roblayton / user-data
Last active Aug 29, 2015
An example cloud-config for CoreOS
View user-data
# generate a new token for each unique cluster from
# WARNING: replace each time you 'vagrant destroy'
addr: $public_ipv4:4001
peer-addr: $public_ipv4:7001
roblayton /
Created Jun 29, 2015
Generates a hashed password
# import the hash algorithm
from passlib.hash import sha256_crypt
# generate new salt, hash a password string
hash = sha256_crypt.encrypt("password")
roblayton / Vagrantfile
Last active Aug 29, 2015
A Vagrant multi-machine cluster
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "ubuntu/trusty64"
config.vm.provision "shell", inline: "apt-get update"
You can’t perform that action at this time.