From 17ba7d9d03d21e61233daf42cb2f3073ed19cb78 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 25 Jan 2024 07:56:36 -0600 Subject: [PATCH] serial1: Add config for serial console machine --- serial-console.yaml | 15 ++++++++++++ serial1.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 serial-console.yaml create mode 100644 serial1.yaml diff --git a/serial-console.yaml b/serial-console.yaml new file mode 100644 index 0000000..52a12a9 --- /dev/null +++ b/serial-console.yaml @@ -0,0 +1,15 @@ +variant: fcos +version: 1.4.0 +ignition: + config: + merge: + - local: packages.ign + +storage: + files: + - path: /etc/ignition/packages.d/serial-console + mode: 0644 + contents: + inline: | + picocom + tmux diff --git a/serial1.yaml b/serial1.yaml new file mode 100644 index 0000000..2bf0b9e --- /dev/null +++ b/serial1.yaml @@ -0,0 +1,59 @@ +variant: fcos +version: 1.4.0 + +ignition: + config: + merge: + - local: fix-hybrid-mbr.ign + - local: common.ign + - local: zram.ign + - local: cfg.ign + - local: serial-console.ign + +passwd: + users: + - name: root + password_hash: '$6$rounds=656000$Dwv1aYtPgIZ3qgrW$3NULGiOIBcNUwNJsk0WjaIZx2uDCapejz7A/DwYGiZWVXvm5KLjW5lAh0zhzAfF6M.rXxi/YBygaNaN2XAAj5/' + +# Attempting to add a user to any group other than adm, wheel, sudo, or +# systemd-journal causes Ignition to fail: +# +# useradd: group 'dialout' does not exist +# +# Work-around: +# +# sed -n '/^dialout:/s/.*/\0core/p' /lib/group | sudo tee -a /etc/group +# +# See also: https://discussion.fedoraproject.org/t/groupadd-usermod-dont-always-work-in-coreos/41735 +# See also: https://github.com/coreos/rpm-ostree/issues/49 +# +# - name: core +# groups: +# - adm +# - wheel +# - sudo +# - dialout +# - systemd-journal + +storage: + files: + - path: /etc/hostname + mode: 0644 + contents: + inline: serial1.pyrocufflink.blue + + - path: /etc/NetworkManager/system-connections/enu1u1.nmconnection + mode: 0600 + contents: + inline: | + [connection] + id=enu1u1 + type=ethernet + interface-name=enu1u1 + + [ipv4] + address1=172.30.0.13/26,172.30.0.1 + dns=172.30.0.1; + dns-search=pyrocufflink.blue; + method=manual + may-fail=false