diff --git a/.dockerignore b/.dockerignore index 0616a7a0..03fe613f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,3 +3,4 @@ Godeps/ vendor/ assets/ vagrant/ +*.aci diff --git a/.gitignore b/.gitignore index 6512e9b5..f664d73b 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,3 @@ _testmain.go bin/ assets/ *.aci -trustdb.gpg \ No newline at end of file diff --git a/examples/README.md b/examples/README.md index 1275a69d..8257a910 100644 --- a/examples/README.md +++ b/examples/README.md @@ -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 diff --git a/examples/alpha-pxe.yaml b/examples/alpha-pxe.yaml new file mode 100644 index 00000000..565b45de --- /dev/null +++ b/examples/alpha-pxe.yaml @@ -0,0 +1,7 @@ +--- +api_version: v1alpha1 +groups: + - name: PXE CoreOS alpha + spec: alpha-pxe + metadata: + ssh_authorized_keys: diff --git a/examples/ignition/ssh.yaml b/examples/ignition/ssh.yaml new file mode 100644 index 00000000..08b80367 --- /dev/null +++ b/examples/ignition/ssh.yaml @@ -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}} diff --git a/examples/specs/alpha-pxe/spec.json b/examples/specs/alpha-pxe/spec.json new file mode 100644 index 00000000..83e260d2 --- /dev/null +++ b/examples/specs/alpha-pxe/spec.json @@ -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" +} \ No newline at end of file