Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -ex
TINKERBELL_URL=$(cat /proc/cmdline | sed -e 's/^.*tinkerbell=//' -e 's/ .*$//')/phone-home
INSTALLER_IMAGE=rancher/os:v0.7.0-rc7
tinkerbell_post()
{
system-docker run rancher/curl -X POST -H "Content-Type: application/json" -d "{\"type\":\"provisioning.$1\",\"body\":\"$2\"}" ${TINKERBELL_URL}
}
#!/bin/bash
set -ex
TINKERBELL_URL=$(cat /proc/cmdline | sed -e 's/^.*tinkerbell=//' -e 's/ .*$//')/phone-home
INSTALLER_IMAGE=rancher/os:v0.7.0-rc3
tinkerbell_post()
{
system-docker run rancher/curl -X POST -H "Content-Type: application/json" -d "{\"type\":\"provisioning.$1\",\"body\":\"$2\"}" ${TINKERBELL_URL}
}
#!/bin/bash
set -ex
TINKERBELL_URL=$(cat /proc/cmdline | sed -e 's/^.*tinkerbell=//' -e 's/ .*$//')/phone-home
INSTALLER_IMAGE=rancher/os:v0.7.0-rc3
tinkerbell_post()
{
system-docker run rancher/curl -X POST -H "Content-Type: application/json" -d "{\"type\":\"provisioning.$1\",\"body\":\"$2\"}" ${TINKERBELL_URL}
}
#!/bin/bash
set -e
TINKERBELL_URL=$(cat /proc/cmdline | sed -e 's/^.*tinkerbell=//' -e 's/ .*$//')/phone-home
INSTALLER_IMAGE=rancher/os:v0.7.0-rc3
tinkerbell_post()
{
system-docker run rancher/curl -X POST -H "Content-Type: application/json" -d "{\"type\":\"provisioning.$1\",\"body\":\"$2\"}" ${TINKERBELL_URL}
}
two golang issues
user docker error handling
config filter private (and tests)
p.Load(map) in libcompose
add logs to upgrade and console siwthc
use DHCPCD hooks to not restart dhcpcd, forget reapplying interface configs(cloud init v2 eliminates the need for this?)
update libdockermachine

Spin up an Ubuntu 16.04 Packet instance. There are two different categories: Type-0 and the other types. We'll need to test one from each category. SSH into the instance and change the root password.

echo "root:root" | chpasswd

Download the initrd and vmlinuz for the RC.

wget <initrd URL>
wget <vmlinuz URL>
Kernel parameters: "console=ttyS1,115200n8 rancher.cloud_init.datasources=[<SCRIPT>] rancher.network.interfaces.eth0.dhcp=true rancher.network.interfaces.eth2.dhcp=true"
{ type: 'provisioning.104', body: 'Connected to magic install system' },
{ type: 'provisioning.105', body: 'Server partitions created' },
{ type: 'provisioning.106', body: 'OEM drive configured' },
{ type: 'provisioning.107', body: 'Network interface configuration fetched from metadata' },
{ type: 'provisioning.108', body: 'Installation finished, rebooting server' }
#!/bin/bash
set -e
TINKERBELL_URL=$(cat /proc/cmdline | sed -e 's/^.*tinkerbell=//' -e 's/ .*$//')
INSTALLER_IMAGE=rancher/os:v0.7.0-rc2
tinkerbell_post()
{
system-docker run rancher/curl -X POST -H "Content-Type: application/json" -d "{'type':'provisioning.$1'}" ${TINKERBELL_URL}
}
#cloud-config
rancher:
console: debian
rancher-server:
image: rancher/server
restart: always
ports:
- 8080:8080