forked from JM1/bootstrap-fedora-coreos-with-redfish-bmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.bu
57 lines (49 loc) · 3.93 KB
/
config.bu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
variant: fcos
version: 1.4.0
passwd:
users:
- name: jmeng
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLHg/svxPOltua4whk8ZI0Rlu5uGHvhBFKuOUHm+9Xkly2id2b1z+pn+rYkp6tMPBiYCQmICGfpwdID7GRZp17pzKpbuyz2REfwqcEQkuryvl9/J02H7S5gQHB7Wt/98qt+V74Si+wS/m9hXr1JJsVK4H/7fKpvEcsYQYNacekZhqa/77rXVlO/6N/GiXHBeDrxVKy5fnY2tqgmDp2bWgDQUwHTdR1B/rDn0TOqTanyUXhtNqP+PYtiUic8/+YCig7qe75p6L6PPVPFLwW6qqVtqri+7oKqYzBa2SD5nJ/6atIcArY2RRrnSvsBgkvEpKMW2NzV5+saER8JKli2MAbQGP9p+2R3nPkcYqNQWXwvF/vjyldI0vy1KbU7GgqMj2C7xWi2UNRN7F+AKADFKL2Gw7lJm8Uzt9i78bsIWheqcxnWrEzVeNURe1o7lnz5Qtqqm6XE4r2kAXXnGyVbkZk7KV4bshEGM1a6aslqAMCTIbWGEMCwGIyHXSz2+m4/uR5LZEKJokEuZoieZnhCOe1un69b2EsKtAMXSprTZz6fg2VtlAvs4Vzrr3/FuOFMzPXe7BcFWFphNA9R4hCAcTBw0U1Y3ACn9kjYKf6NR2eo1tLgSrPeCG7OwbvUKDpifyA8PHwm/gTGQnsNOT/j1WHyEe6sDKPej0qrKwOB9hszw== Jakob Meng <[email protected]> (Ivytronik1LiDe)
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQC85YhTFpN4H17dih1LgYV4wpcdTi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7kA1ShVyBSvgdP/k1iUDgtfD2lnKhDuHVe8c3oIx7hLWHjg4g0B4ZimgTyWgjjbgmA4y8JwxwvLAut1NVgQYjoVnGgy25fED1nZEON7WERNk0m5yGIWi5rEyiTjZoIbBDMmamyvf0F8GlPCCb/BI8cYTbqrKDdSTBc46LRR3IDHws5hQk/oyENU+bIRjDGGXO1ydeWR2qM/IMGjMV0y1M+4gcSAZp6I1G4eGaMT4duQg9sWQZz5aZ6LZCwEj4xm8EgQjq2kAOpAYDCHMb Jakob Meng <[email protected]> (Positronik4LiDe)
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICIqI8Z/823S+pcHS+D7EbWQXgHX3kLQjE42qNjLCF5G Jakob Meng <[email protected]> (Positronik4LiDe)
- ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBADyh+j6b7AOmiK7xz2Ffp/7wdllHYDEsKvK1UH7EfsUcNHu99ia5oQiQLuAKvckcbXgZ1mSI+nyz5Ez/I/TXMJZYACZrQ47I4m8FWyZMvqt01xXw7wqrjtpY10MfdduhyofjkAHkr4kEH5sv4xQbECejbB/3BcQp0kkHZWlVU8oZJQq3A== Jakob Meng <[email protected]> (Positronik4LiDe)
groups:
- sudo
- wheel
storage:
files:
- path: /usr/local/bin/bootstrap.sh
mode: 0755
contents:
inline: |
#!/bin/bash
# 2023 Jakob Meng, <[email protected]>
set -euxo pipefail
# Disable IPv6 in NetworkManager connection(s) to prevent IPv6 related warnings
# Ref.: https://access.redhat.com/solutions/6967304
nmcli --get-value name connection \
| while read -r CONNECTION; do
nmcli connection modify "$CONNECTION" ipv6.method disabled
done
systemd:
units:
- name: bootstrap.service
enabled: true
contents: |
# 2023 Jakob Meng, <[email protected]>
[Unit]
Before=systemd-user-sessions.service
Wants=network-online.target
After=network-online.target
StartLimitBurst=3
StartLimitIntervalSec=infinity
[Service]
Type=oneshot
ExecStart=/usr/local/bin/bootstrap.sh
RemainAfterExit=yes
# Retry because network configuration might not be completed despite Wants=network-online.target
Restart=on-failure
RestartSec=15s
[Install]
WantedBy=multi-user.target