Skip to content

Instantly share code, notes, and snippets.

Sam Kottler skottler

View GitHub Profile
View netboot.xyz-edgerouter.md

Setting up netboot.xyz with an EdgeRouter

This document covers how to setup netboot.xyz, a service that provides iPXE-based installation and live boot of a bunch of operating systems, on a Ubiquiti EdgeRouter.

Assumptions

I've made a few assumptions throughout this document that will probably be different for your setup:

View gist:5061909
samkottler@ip-10-253-6-159:/etc/logrotate.d$ sudo dpkg -S nginx
nginx: /etc/nginx/scgi_params
nginx: /etc/nginx/conf.d/example_ssl.conf
nginx: /etc/nginx/nginx.conf
nginx: /etc/nginx/win-utf
nginx: /opt/nginx/sbin/nginx
nginx: /opt/nginx/html/50x.html
nginx: /etc/nginx/mime.types
nginx: /opt/nginx/conf/uwsgi_params
nginx: /opt/nginx/sbin/nginx.old
View gist:4679026
#rubygems Central conversation
#rubygems-status: The content of the status site
#rubygems-verification: Checking MD5's against S3
View gist:4355186
timeout=5
menuentry "Fedora 18" {
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
insmod lvm
set root='hd0,gpt5'
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' 4d293507-3ec0-410a-9606-bcbcfe44d7dd
echo 'Loading vmlinuz...'
View gist:3366043
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-root /vagrant
View gist:3362547
#!/usr/bin/ruby
require 'puppet'
require 'net/http'
require 'yaml'
Factsdir = "/var/lib/puppet/yaml/facts"
Foreman = "http://foreman"
node = ARGV[0]
View gist:3221302
#!/usr/bin/env python
import sys
import time
import argparse
from datetime import timedelta
import pyes
__version__ = '0.1.0'
View gist:3078587
setgid ubuntu
setuid ubuntu
start on runlevel [2345]
stop on runlevel [016]
View gist:2508773
environments/
|-- dev
| |-- hieradb
| | |-- Ubuntu.yaml
| | |-- CentOS.yaml
| | `-- common.yaml
| `-- modules
| `-- nagios
`-- prod
|-- hieradb
You can’t perform that action at this time.