These instructions are for Ubuntu 13.10 x64. Each server should have a proper resolvable hostname!
sudo aptitude install openjdk-7-jre-headless java7-runtime-headless
#!/bin/bash | |
usage() { | |
echo "$0 usage:" | |
echo " $0 file" | |
exit 1 | |
} | |
if [ -z "$1" ]; then |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
VERSION="20200421.1" | |
_usage() { | |
cat << __EOF | |
$0 usage: |
#!/bin/bash | |
usage() { | |
echo "Usage $0 branchname" | |
exit 1 | |
} | |
if [ -z "$1" ]; then | |
usage | |
fi |
#!/bin/bash | |
all=`git remote` | |
echo "Pruning all remotes" | |
for r in $all; do | |
echo -n "$r... " | |
git remote prune $r && echo "done." | |
done |
#!/usr/bin/env ruby | |
original_file=ARGV[0] | |
ARGV.shift | |
$PROGRAM_NAME=original_file | |
require 'rubygems' | |
begin | |
require 'rubygems-bundler/noexec' |
#!/bin/bash | |
# | |
### BEGIN INIT INFO | |
# Provides: chef-server | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Control the Chef Server | |
# Description: Control the Chef Server |
#!/bin/bash | |
# | |
# Save somewhere and chmod o+x it and Run it from /etc/rc.local | |
# Modify and re-arrange as you see fit | |
# | |
# Change as appropriate | |
DOMAIN=local | |
USER_DATA=`/usr/bin/curl -s http://169.254.169.254/latest/meta-data/hostname` |