I hereby claim:
- I am knight1 on github.
- I am knight22 (https://keybase.io/knight22) on keybase.
- I have a public key ASAVuRBoy-GZH_mQ8WXGvVObZ-lPJzNL7crNkALeoOEcsgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| #Usage: default is Type 2a. If you wish another server type use ./packet.net 1/2/3 | |
| #See https://www.packet.net/bare-metal/ | |
| #Obtain api key here => https://app.packet.net/portal#/api-keys | |
| KEY= | |
| if [[ -z ${1+x} ]]; then | |
| PLAN=2a | |
| else |
| #!/bin/bash | |
| ID=`hcloud server list | tail -1 | grep Windoof | awk '{print $1;}'` | |
| CONTEXT=`hcloud context active` | |
| if [ "$CONTEXT" != "testing" ]; then | |
| echo "[CRIT] Aborting, wrong context" | |
| exit | |
| fi |
| #cloud-init | |
| #ONLY USE THIS FOR CLEAN INSTALL with cloud-init! | |
| runcmd: | |
| - curl -sSL https://get.docker.com/ | CHANNEL=stable sh | |
| - systemctl enable docker.service | |
| - systemctl start docker.service | |
| - curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose |
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.
I've made a few assumptions throughout this document that will probably be different for your setup:
| FROM centos:centos7 | |
| LABEL maintainer="Tobias Sachs" | |
| RUN curl -O 'https://ftp.ripe.net/ripe/atlas/software-probe/centos7/noarch/ripe-atlas-repo-1-2.el7.noarch.rpm' \ | |
| && yum install ripe-atlas-repo-1-2.el7.noarch.rpm -y \ | |
| && yum install atlasswprobe openssh-clients iproute sysvinit-tools net-tools -y \ | |
| && systemctl enable atlas.service \ | |
| && (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ | |
| systemd-tmpfiles-setup.service ] || rm -f $i; done); \ |