Skip to content

Instantly share code, notes, and snippets.

@gorbypark
Last active December 9, 2018 21:29
Show Gist options
  • Save gorbypark/8d2f60815f471d25391cf6f6fa773612 to your computer and use it in GitHub Desktop.
Save gorbypark/8d2f60815f471d25391cf6f6fa773612 to your computer and use it in GitHub Desktop.
{
"ignition": {
"config": {},
"security": { "tls": {} },
"timeouts": {},
"version": "2.2.0"
},
"networkd": {},
"passwd": {
"users": [
{
"name": "core",
"sshAuthorizedKeys": [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDyFnMwB2uyD9WTI0hjjMrcVa+ez2yZzr2mHT6qOhSa5S889nD8vMFo2ucRyZgBRK/g18dsgcjqwD/2VCA3uYWZJQzadwtUYdSxrurAGI445eta9Bj6PYOVTYgzuGVCBhl1irRhBNzYAxtykTmSGIsIKCOlZ6zWkLVj3bs+8PR6FHP/kXxQKIRsj/VPRlVukespUXcnCILBZByEO5okp/4J3KF5wu0m3CuGRa+NpVVlSh88if9/kzubnZjZmNz62pLu4D/fXBhNCCPR7JvwtqxLhO39Yq67NQje1GBg1GP1ueD0H9deXnesWeUEnKaOgQjz1FBxweyVGyegddanhcWL mike@mikehamilton.ca"
]
}
]
},
"storage": {
"files": [
{
"filesystem": "root",
"path": "/opt/bootstrap.sh",
"contents": {
"source": "https://gist.githubusercontent.com/gorbypark/04f6181fb5d464c392b2b70bdb97b7a4/raw/7da998cbc006559a0236acdbff309cee4868923e/kube.sh",
"verification": {}
},
"mode": 511
}
]
},
"systemd": {
"units": [
{ "enabled": true, "name": "docker.service" },
{
"contents": "[Unit]\nDescription=Bash script to run post-installation\nConditionFirstBoot=yes\nBefore=docker.service\n[Service]\nType=oneshot\nRemainAfterExit=yes\nPreExecStart=/bin/chmod +x /opt/bootstrap.sh\nExecStart=/opt/bootstrap.sh\n[Install]\nWantedBy=default.target\n",
"enable": true,
"name": "firstboot.service"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment