data: Show ignition usage for two libvirt nodes

* Configure node1 and node2 with static IP addresses
This commit is contained in:
Dalton Hubble
2016-01-04 15:19:24 -08:00
parent d880a332de
commit e61d96ecd8
7 changed files with 70 additions and 8 deletions

View File

@@ -10,4 +10,4 @@ write_files:
owner: "core"
permissions: "0644"
content: |
File added by node1-cloud.yml.
File added by node1.yml.

13
data/cloud/node2.yml Normal file
View File

@@ -0,0 +1,13 @@
#cloud-config
coreos:
units:
- name: etcd2.service
command: start
- name: fleet.service
command: start
write_files:
- path: "/home/core/cloud"
owner: "core"
permissions: "0644"
content: |
File added by node2.yml.

11
data/ignition/node1.json Normal file
View File

@@ -0,0 +1,11 @@
{
"ignitionVersion": 1,
"networkd": {
"units": [
{
"name": "00-ens3.network",
"contents": "[Match]\nName=ens3\n\n[Network]\nAddress=172.17.0.41"
}
]
}
}

20
data/ignition/node2.json Normal file
View File

@@ -0,0 +1,20 @@
{
"ignitionVersion": 1,
"systemd": {
"units": [
{
"name": "hello.service",
"enable": true,
"contents": "[Service]\nType=oneshot\nExecStart=/usr/bin/echo Hello World\n\n[Install]\nWantedBy=multi-user.target"
}
]
},
"networkd": {
"units": [
{
"name": "00-ens3.network",
"contents": "[Match]\nName=ens3\n\n[Network]\nAddress=172.17.0.42"
}
]
}
}

View File

@@ -1,4 +1,18 @@
{
"id": "074fbe06-94a9-4336-9e8a-20b6f81efb6c",
"spec_id": "orion"
"spec": {
"boot": {
"kernel": "/images/coreos/835.9.0/coreos_production_pxe.vmlinuz",
"initrd": ["/images/coreos/835.9.0/coreos_production_pxe_image.cpio.gz"],
"cmdline": {
"cloud-config-url": "http://172.17.0.2:8080/cloud?uuid=${uuid}&mac=${net0/mac:hexhyp}",
"coreos.config.url": "http://172.17.0.2:8080/ignition?uuid=${uuid}",
"coreos.autologin": "",
"coreos.first_boot": ""
}
},
"cloud_id": "node2.yml",
"ignition_id": "node2.json"
},
"spec_id": ""
}

View File

@@ -2,15 +2,17 @@
"id": "2d9354a2-e8db-4021-bff5-20ffdf443d6f",
"spec": {
"boot": {
"kernel": "/images/coreos/877.1.0/coreos_production_pxe.vmlinuz",
"initrd": ["/images/coreos/877.1.0/coreos_production_pxe_image.cpio.gz"],
"kernel": "/images/coreos/835.9.0/coreos_production_pxe.vmlinuz",
"initrd": ["/images/coreos/835.9.0/coreos_production_pxe_image.cpio.gz"],
"cmdline": {
"cloud-config-url": "http://172.17.0.2:8080/cloud?uuid=${uuid}&mac=${net0/mac:hexhyp}",
"coreos.autologin": ""
"coreos.config.url": "http://172.17.0.2:8080/ignition?uuid=${uuid}",
"coreos.autologin": "",
"coreos.first_boot": ""
}
},
"cloud_id": "node1-cloud.yml",
"ignition_id": ""
"cloud_id": "node1.yml",
"ignition_id": "node1.json"
},
"spec_id": ""
}

View File

@@ -5,7 +5,9 @@
"initrd": ["/images/coreos/835.9.0/coreos_production_pxe_image.cpio.gz"],
"cmdline": {
"cloud-config-url": "http://172.17.0.2:8080/cloud?uuid=${uuid}&mac=${net0/mac:hexhyp}",
"coreos.autologin": ""
"coreos.config.url": "http://172.17.0.2:8080/ignition?uuid=${uuid}",
"coreos.autologin": "",
"coreos.first_boot": ""
}
},
"cloud_id": "orion-cloud-config.yml",