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
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
#!/usr/local/bin/ksh93 | |
confdir=/usr/local/etc/poudriere.d | |
BRANCHES="2014Q2 2015Q1" | |
ARCHS="i386 amd64" | |
VERSIONS="9.1 9.3 10.1" | |
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 |
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) | |
csync2: | |
parallel | |
pri xinetd | |
pri csync2?? |
Inspired mostly from the Bootstrap DS215j blog post
# 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 |
#!/bin/bash | |
CONFIG_FILE="/etc/sysconfig/network" | |
function set_hostname() { | |
NAME=$1 | |
[ -n "$NAME" ] || exit 0 | |
sed -i '/^HOSTNAME=.*$/d' $CONFIG_FILE |
#!/bin/bash | |
. /tmp/context.sh | |
CONFIG_FILE="/etc/hostname" | |
function set_hostname() { | |
NAME=$1 | |
[ -n "$NAME" ] || exit 0 |
Rudder Inventory Flow | |
Managed Node: | |
rudder agent inventory | |
cf-agent -KI -Dforce_inventory |