This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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}) || ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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(' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Plugin to monitor the % of allocated area of a LVM snapshot | |
# | |
# Parameters: | |
# | |
# config | |
# autoconf | |
# | |
# Configuration variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[main] | |
storeconfigs = true | |
storeconfigs_backend = puppetdb | |
reports = store,puppetdb | |
pluginsync = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
region=`facter ec2_placement_availability_zone | sed 's/[a-z]$//g'` | |
instanceId=`facter ec2_instance_id` | |
/usr/bin/aws ec2 describe-tags --filters "Name=resource-id,Values=${instanceId}" --region ${region} | jq '.Tags[] | "ec2_tag_" + .Key + "=" + .Value' | tr [:upper:] [:lower:] | tr -d '"' | |
exit 0 |
OlderNewer