Merge pull request #38 from coreos/ignition-examples

examples: Configure networkd with Ignition in etcd examples
This commit is contained in:
Dalton Hubble
2016-01-23 14:00:30 -05:00
12 changed files with 60 additions and 72 deletions

View File

@@ -13,19 +13,3 @@ coreos:
command: start
- name: fleet.service
command: start
- name: 00-ens3.network
runtime: true
content: |
[Match]
Name=ens3
[Network]
Address=172.17.0.21/16
- name: down-interfaces.service
command: start
content: |
[Service]
Type=oneshot
ExecStart=/usr/bin/ip link set ens3 down
ExecStart=/usr/bin/ip addr flush dev ens3
- name: systemd-networkd.service
command: restart

View File

@@ -13,19 +13,3 @@ coreos:
command: start
- name: fleet.service
command: start
- name: 00-ens3.network
runtime: true
content: |
[Match]
Name=ens3
[Network]
Address=172.17.0.22/16
- name: down-interfaces.service
command: start
content: |
[Service]
Type=oneshot
ExecStart=/usr/bin/ip link set ens3 down
ExecStart=/usr/bin/ip addr flush dev ens3
- name: systemd-networkd.service
command: restart

View File

@@ -13,19 +13,3 @@ coreos:
command: start
- name: fleet.service
command: start
- name: 00-ens3.network
runtime: true
content: |
[Match]
Name=ens3
[Network]
Address=172.17.0.23/16
- name: down-interfaces.service
command: start
content: |
[Service]
Type=oneshot
ExecStart=/usr/bin/ip link set ens3 down
ExecStart=/usr/bin/ip addr flush dev ens3
- name: systemd-networkd.service
command: restart

View File

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

View File

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

View File

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

View File

@@ -5,9 +5,11 @@
"initrd": ["/assets/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": "etcd1.yaml",
"ignition_id": ""
"ignition_id": "etcd1.json"
}

View File

@@ -5,9 +5,11 @@
"initrd": ["/assets/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": "etcd2.yaml",
"ignition_id": ""
"ignition_id": "etcd2.json"
}

View File

@@ -5,9 +5,11 @@
"initrd": ["/assets/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": "etcd3.yaml",
"ignition_id": ""
"ignition_id": "etcd3.json"
}

View File

@@ -10,19 +10,3 @@ coreos:
units:
- name: etcd2.service
command: start
- name: 00-ens3.network
runtime: true
content: |
[Match]
Name=ens3
[Network]
Address=172.17.0.21/16
- name: down-interfaces.service
command: start
content: |
[Service]
Type=oneshot
ExecStart=/usr/bin/ip link set ens3 down
ExecStart=/usr/bin/ip addr flush dev ens3
- name: systemd-networkd.service
command: restart

View File

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

View File

@@ -5,9 +5,11 @@
"initrd": ["/assets/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": "etcd.yaml",
"ignition_id": ""
"ignition_id": "etcd.json"
}