mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
Merge pull request #38 from coreos/ignition-examples
examples: Configure networkd with Ignition in etcd examples
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
11
examples/etcd-large/ignition/etcd1.json
Normal file
11
examples/etcd-large/ignition/etcd1.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
11
examples/etcd-large/ignition/etcd2.json
Normal file
11
examples/etcd-large/ignition/etcd2.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
11
examples/etcd-large/ignition/etcd3.json
Normal file
11
examples/etcd-large/ignition/etcd3.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
11
examples/etcd-small/ignition/etcd.json
Normal file
11
examples/etcd-small/ignition/etcd.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user