serial1: Add config for serial console machine
parent
91af50acc2
commit
17ba7d9d03
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue