This is what we did to setup a few dashboards at platanus
- Raspberry Pi
- Dashing Service
- Wifi stick (optional)
#!/bin/bash | |
# | |
# Plugin to monitor the % of allocated area of a LVM snapshot | |
# | |
# Parameters: | |
# | |
# config | |
# autoconf | |
# | |
# Configuration variables |
#!/bin/bash | |
############################### | |
# Will move all Mysql tables from one database to a new database | |
[ "$#" -lt 2 ] && echo "usage: $(basename $0) OLD_DB NEW_DB MYSQL_AUTH_OPTS" && exit 1 | |
SRCDB=$1 | |
DSTDB=$2 | |
shift | |
shift |
#!/bin/bash | |
if [ "n$2" = "n" -o ! -e "$1" ] ; then | |
echo "usage: $(basename $0) PATH_TO_LV_SOURCE NAME_OF_NEW_LV " | |
echo -e "\nEx: $(basename $0) /dev/VG02_ssd/CentOS6 vm03-d1" | |
exit 1 | |
fi | |
SOURCE=$1 | |
DEST=$2 |
--- /usr/local/bin/mk-slave-find.original 2014-02-20 11:54:39.000000000 +0100 | |
+++ /usr/local/bin/mk-slave-find 2014-02-20 11:58:21.000000000 +0100 | |
@@ -2907,6 +2907,7 @@ | |
push @lines, ['Version', $vars->{version}->{value}]; | |
push @lines, ['Server ID', $vars->{server_id}->{value}]; | |
+ push @lines, ['Hostname', $vars->{hostname}->{value}]; | |
my $dhms = secs_to_time($stats->{Uptime}->{value}) || ''; | |
my $started = ts(time - $stats->{Uptime}->{value}) || ''; |
#!/usr/bin/python | |
from boto.ec2.connection import EC2Connection | |
from boto.utils import get_instance_metadata | |
from datetime import datetime | |
import sys | |
conn = EC2Connection('AUTH_KEY', 'SECRET_KEY') | |
description = 'Created by crontab at ' + datetime.today().isoformat(' ') |
#!/usr/bin/python | |
from boto.ec2.connection import EC2Connection | |
from boto.utils import get_instance_metadata | |
from datetime import datetime | |
import sys | |
conn = EC2Connection('xxxxxxxxxxxx', 'yyyyyyyyyyyyyyy') | |
hostname = socket.gethostname() |
This is what we did to setup a few dashboards at platanus
<koken:if true="settings.albums_index_show_title"> | |
<h4> | |
<koken:load style="margin-left: 0.2em;"> | |
{{ album.title }} <!-- Prints SET title --> | |
</koken:load> | |
</h4> | |
<p>Work | |
<koken:load> |
config.vm.provision :puppet do |puppet| | |
# Add a folder in your root named .ppt | |
puppet.manifests_path = ".ppt/manifests" | |
# vagrant.pp is your main manifest and goes in .ppt/manifests | |
puppet.manifest_file = "vagrant.pp" | |
# Add puppet modules in .ppt/modules as git submodules; they will be pre-installed in Vagrant this way | |
puppet.module_path = ".ppt/modules" | |
# Config files, etc. go in .ppt/files. fileserver.conf (see below) defines the path for puppet to add | |
# when looking for files. That way, you can reference files with puppet:// protocols. Make sure you | |
# add the directory defined in fileserver.conf as a shared directory in the main Vagrantfile config |
class my_fw::pre { | |
# Disable due to selective purges of firewallchain | |
# resources { "firewall": | |
# purge => true | |
# } | |
# Avoid removing Docker rules: | |
firewallchain { 'FORWARD:filter:IPv4': | |
purge => true, |