Skip to content

Instantly share code, notes, and snippets.

ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuNBxI7wT+9X2FiTTEk07e0EmwuK0S3bugUzlvCwFes7E4+7cGVX8W3JKBZEmTh+AIMPUVfZ1XHFe1DPqamaDXUewFTETbkoIk5BhPsDq9LFntAoy/XOT/3fcR1OnGmaij4NmaerVEmnaHCFemBJaRqoHLxZXX+VcXq27Fg6SLG8Jr6uVCu4fqOoZ3r/99mIjV4Yyy2RnJExJoVc3h90U5hK0iIH8VpT/LMsP5CKvxMq1/ts8q/XFoiq1sKSMTCuzIcwGPfO5t1JMOjTPWGwZ3Lngfm/onwT9agakvd/SADsfi5VyGfA+/l0IFqo0tyAitWBOOcC8h7F0eFfVzd0CV joshwget@x
rancher:
hostname: name
network:
dns:
search:
- a
- b
nameservers:
#!/bin/bash
set -ex
RESIZE_DEV=/dev/xvda
STAMP=/var/log/resizefs.done
if [ -e "${STAMP}" ]; then
echo FS already resized.
exit 0
fi
resizefs:
image: joshwget/resize
environment:
- RESIZE_DEV
privileged: true
labels:
io.rancher.os.detach: false
io.rancher.os.scope: system
io.rancher.os.before: console
volumes:
foo:
image: busybox
command: env
labels:
- io.rancher.os.remove=false
- io.rancher.os.after=docker
- io.rancher.os.scope=system
stdin_open: true
tty: true
volumes:
#cloud-config
hostname: github
#cloud-config
rancher:
network:
interfaces:
eth0:
mtu: 1454
dhcp: true
dns:
search:
- mydomain.com
ff:
image: busybox
command: sleep 1000
environment: []
labels:
io.rancher.os.scope: system
kernel-headers:
image: rancher/os-headers:v0.4.5-rc1
labels:
io.rancher.os.detach: false
io.rancher.os.after: docker
volumes:
- /usr/src:/usr/src
- /lib/modules:/lib/modules
#!/bin/bash
set -e
if ros version >/dev/null 2>&1; then
exit 0
fi
apt-get install -y jq curl
mkdir -p /boot/ros
version: '2'
services:
ff:
image: busybox