examples: Add CoreOS alpha single node PXE example

This commit is contained in:
Dalton Hubble
2016-02-24 14:01:05 -08:00
parent 48f507ba0d
commit 41fe456d68
6 changed files with 35 additions and 2 deletions

View File

@@ -3,3 +3,4 @@ Godeps/
vendor/
assets/
vagrant/
*.aci

1
.gitignore vendored
View File

@@ -29,4 +29,3 @@ _testmain.go
bin/
assets/
*.aci
trustdb.gpg

View File

@@ -7,7 +7,8 @@ These examples show declarative configurations for network booting libvirt VMs i
|------------|-------------|----------------|----------------|
| etcd | Cluster with 3 etcd nodes, 2 proxies | [reference](https://coreos.com/os/docs/latest/cluster-architectures.html) | beta/899.6.0 |
| Kubernetes | Kubernetes cluster with 1 master, 1 worker, 1 dedicated etcd node | [reference](https://github.com/coreos/coreos-kubernetes) | beta/899.6.0 |
| etcd on disk | 2-stage Ignition: Install CoreOS, provision etcd cluster | [reference](https://coreos.com/os/docs/latest/installing-to-disk.html) | alpha/962.0.0,935.0.0 |
| Disk install w etcd | 2-stage Ignition: Install CoreOS, provision etcd cluster | [reference](https://coreos.com/os/docs/latest/installing-to-disk.html) | alpha/962.0.0,935.0.0 |
| alpha-pxe | PXE CoreOS alpha node, uses configured SSH keys | | alpha/962.0.0 |
## Experimental

7
examples/alpha-pxe.yaml Normal file
View File

@@ -0,0 +1,7 @@
---
api_version: v1alpha1
groups:
- name: PXE CoreOS alpha
spec: alpha-pxe
metadata:
ssh_authorized_keys:

View File

@@ -0,0 +1,11 @@
---
ignition_version: 1
{{ if .ssh_authorized_keys }}
passwd:
users:
- name: core
ssh_authorized_keys:
{{ range $element := .ssh_authorized_keys }}
- {{$element}}
{{end}}
{{end}}

View File

@@ -0,0 +1,14 @@
{
"id": "alpha-pxe",
"boot": {
"kernel": "/assets/coreos/962.0.0/coreos_production_pxe.vmlinuz",
"initrd": ["/assets/coreos/962.0.0/coreos_production_pxe_image.cpio.gz"],
"cmdline": {
"coreos.config.url": "http://bootcfg.foo:8080/ignition?uuid=${uuid}&mac=${net0/mac:hexhyp}",
"coreos.autologin": "",
"coreos.first_boot": ""
}
},
"cloud_id": "",
"ignition_id": "ssh.yaml"
}