-
create yaml file
-
create ignition file:
podman run -i --rm quay.io/coreos/fcct:release --pretty --strict < ignition-backup.yaml > ignition.yaml
-
test ignitio file:
docker run --rm -i quay.io/coreos/ignition-validate:release - < ignition.yaml
-
sudo coreos-installer install /dev/sda \ --ignition-url https://cutt.ly/XjdAUC7 \ --copy-network`
Last active
January 6, 2021 09:08
-
-
Save wimpunk/96a5852c6a908f1295f6ba5642f5d0ad to your computer and use it in GitHub Desktop.
ignition file for server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
variant: fcos | |
version: 1.2.0 | |
passwd: | |
users: | |
- name: core | |
ssh_authorized_keys: | |
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB56hk7A3pzGt8X3YKFkLOScNLela\ | |
MjFeadE9+XIiIRuDwSdAU6SVwh0JZ1DG7sDLzUW46Vi5PbBMP11SDtE9+telRXnjLuFV\ | |
3bAyg6dhX8Z411v0mH91r7+DmPHCdVm1sH6gQAN+LnnNOjZ0qKPu2nmueqgOYcsZSzzF\ | |
jy0E8bd8/FGplcqDRMNuLfcd3BvS0uUewv1Ew8tpuRxMPvknDrulU5y82xM8csGrt8W4\ | |
L+0wCnaChp9EGt5xCxiWInrRfAW/zYxsOudGQy16wZXFDkJhIDKA2FKaPNXRsEq7QP4I\ | |
cAuBUBhUpYjdLFRb5SWvO+JJkD3r/1r1V3F1Cki2n wim@24sea" | |
groups: [sudo, docker] | |
#storage: | |
# files: | |
# - path: /etc/hostname | |
# overwrite: true | |
# contents: | |
# inline: docker.24sea.eu | |
# - path: /etc/NetworkManager/system-connections/eth0.nmconnection | |
# mode: 0600 | |
# contents: | |
# inline: | | |
# [connection] | |
# id=eth0 | |
# type=ethernet | |
# interface-name=eth0 | |
# [ipv4] | |
# address1=192.168.253.238/24,192.168.253.1 | |
# dns=192.168.253.254 | |
# dns-search=24sea.local | |
# may-fail=true | |
# method=manual | |
# - path: /etc/NetworkManager/system-connections/eth1.nmconnection | |
# mode: 0600 | |
# contents: | |
# inline: | | |
# [connection] | |
# id=eth1 | |
# type=ethernet | |
# interface-name=eth1 | |
# [ipv4] | |
# may-fail=true | |
# method=auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ignition": { | |
"version": "3.2.0" | |
}, | |
"passwd": { | |
"users": [ | |
{ | |
"groups": [ | |
"sudo", | |
"docker" | |
], | |
"name": "core", | |
"sshAuthorizedKeys": [ | |
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB56hk7A3pzGt8X3YKFkLOScNLelaMjFeadE9+XIiIRuDwSdAU6SVwh0JZ1DG7sDLzUW46Vi5PbBMP11SDtE9+telRXnjLuFV3bAyg6dhX8Z411v0mH91r7+DmPHCdVm1sH6gQAN+LnnNOjZ0qKPu2nmueqgOYcsZSzzFjy0E8bd8/FGplcqDRMNuLfcd3BvS0uUewv1Ew8tpuRxMPvknDrulU5y82xM8csGrt8W4L+0wCnaChp9EGt5xCxiWInrRfAW/zYxsOudGQy16wZXFDkJhIDKA2FKaPNXRsEq7QP4IcAuBUBhUpYjdLFRb5SWvO+JJkD3r/1r1V3F1Cki2n wim@24sea" | |
] | |
} | |
] | |
}, | |
"storage": { | |
"files": [ | |
{ | |
"overwrite": true, | |
"path": "/etc/hostname", | |
"contents": { | |
"source": "data:,docker.24sea.eu" | |
} | |
}, | |
{ | |
"path": "/etc/NetworkManager/system-connections/eth0.nmconnection", | |
"contents": { | |
"source": "data:,%5Bconnection%5D%0Aid%3Deth0%0Atype%3Dethernet%0Ainterface-name%3Deth0%0A%5Bipv4%5D%0Aaddress1%3D192.168.253.238%2F24%2C192.168.253.1%0Adns%3D192.168.253.254%0Adns-search%3D24sea.local%0Amay-fail%3Dtrue%0Amethod%3Dmanual%0A" | |
}, | |
"mode": 384 | |
}, | |
{ | |
"path": "/etc/NetworkManager/system-connections/eth1.nmconnection", | |
"contents": { | |
"source": "data:,%5Bconnection%5D%0Aid%3Deth1%0Atype%3Dethernet%0Ainterface-name%3Deth1%0A%5Bipv4%5D%0Amay-fail%3Dtrue%0Amethod%3Dauto%0A" | |
}, | |
"mode": 384 | |
} | |
] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
variant: fcos | |
version: 1.2.0 | |
passwd: | |
users: | |
- name: core | |
ssh_authorized_keys: | |
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB56hk7A3pzGt8X3YKFkLOScNLela\ | |
MjFeadE9+XIiIRuDwSdAU6SVwh0JZ1DG7sDLzUW46Vi5PbBMP11SDtE9+telRXnjLuFV\ | |
3bAyg6dhX8Z411v0mH91r7+DmPHCdVm1sH6gQAN+LnnNOjZ0qKPu2nmueqgOYcsZSzzF\ | |
jy0E8bd8/FGplcqDRMNuLfcd3BvS0uUewv1Ew8tpuRxMPvknDrulU5y82xM8csGrt8W4\ | |
L+0wCnaChp9EGt5xCxiWInrRfAW/zYxsOudGQy16wZXFDkJhIDKA2FKaPNXRsEq7QP4I\ | |
cAuBUBhUpYjdLFRb5SWvO+JJkD3r/1r1V3F1Cki2n wim@24sea" | |
groups: [sudo, docker] | |
storage: | |
files: | |
- path: /etc/hostname | |
overwrite: true | |
contents: | |
inline: docker.24sea.eu | |
- path: /etc/NetworkManager/system-connections/eth0.nmconnection | |
mode: 0600 | |
contents: | |
inline: | | |
[connection] | |
id=eth0 | |
type=ethernet | |
interface-name=eth0 | |
[ipv4] | |
address1=192.168.253.238/24,192.168.253.1 | |
dns=192.168.253.254 | |
dns-search=24sea.local | |
may-fail=true | |
method=manual | |
- path: /etc/NetworkManager/system-connections/eth1.nmconnection | |
mode: 0600 | |
contents: | |
inline: | | |
[connection] | |
id=eth1 | |
type=ethernet | |
interface-name=eth1 | |
[ipv4] | |
may-fail=true | |
method=auto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment