Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile

Chef Bootstrapper For SuSE/SLES


Note: Run this script as the root user (no sudo calls are used in the script).

You will need the curl package installed, though I would have no idea why it wouldn't be installed by default:

zypper --non-interactive install curl

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

FlorianHeigl / gist:f976f5bdf5ae41426c8d
Last active August 29, 2015 14:13
poudriere setup script for quarterlies
BRANCHES="2014Q2 2015Q1"
ARCHS="i386 amd64"
VERSIONS="9.1 9.3 10.1"
FlorianHeigl / gist:6318736
Created August 23, 2013 12:21
Partitioning: backup VM1 ....i still hate github haha
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-lvol00 992M 497M 445M 53% /
/dev/mapper/vg00-lvol04 4.9G 1.2G 3.5G 25% /usr
/dev/mapper/vg00-lvol02 1.4G 563M 731M 44% /var
/dev/mapper/vg00-lvol03 496M 61M 410M 13% /var/log
/dev/mapper/vg00-lvol07 496M 19M 452M 4% /opt
/dev/mapper/vg00-lvol06 248M 11M 226M 5% /home
/dev/mapper/vg00-lvol05 496M 19M 452M 4% /tmp
/dev/xvda1 190M 33M 148M 18% /boot
tmpfs 512M 0 512M 0% /dev/shm
FlorianHeigl / pacemaker groups
Created September 8, 2013 11:53
Home Cluster Resource groups.
cluster consists of 3 nodes:
nexus (Nexus7 tablet, running ubuntu 12)
nsa (NSA325 Nas, running custom fw, with debian wheezy chroot)
pi (Raspi 512M, running debian wheezy)
pri xinetd
pri csync2??
FlorianHeigl /
Created May 9, 2016 20:14 — forked from stevenhaddox/
Bootstrap Synology DS215j DSM 5.x provisioner steps

Boostrap the Synology DS215j with optware, ipkg, and sudo

Inspired mostly from the Bootstrap DS215j blog post

Download & Install ipkg in a persistent manner

# Create a directory that won't get nuked during DSM security updates
mkdir /volume1/@optware
cd /volume1/@optware
i would like to think about the _really_ important IT books.
funny enough most of them will come cheap since they're decades old.
building internet firewalls
snmp, snmpv2 and rmon
high availability network fundamentals
optimizing nfs performance
unix shell objects
FlorianHeigl / 05-hostname.rhel
Created November 16, 2016 04:45
cleaned up(?) script for rhel
function set_hostname() {
[ -n "$NAME" ] || exit 0
sed -i '/^HOSTNAME=.*$/d' $CONFIG_FILE
FlorianHeigl / 05-hostname.deb
Created November 16, 2016 04:46
cleaned up(?) script for deb
. /tmp/
function set_hostname() {
[ -n "$NAME" ] || exit 0
Rudder Inventory Flow
Managed Node:
rudder agent inventory
cf-agent -KI -Dforce_inventory