mirror of
https://github.com/TommyTran732/Fedora-CoreOS-Ignition.git
synced 2025-10-14 18:28:51 +02:00
Compare commits
7 Commits
7b3f274d3a
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5e7b96e582 | ||
![]() |
e93575a87f | ||
![]() |
bffb50dd7a | ||
![]() |
48b5df3957 | ||
![]() |
90b5b42aa9 | ||
![]() |
c193aecd1e | ||
![]() |
494371382f |
@@ -1,8 +1,8 @@
|
|||||||
# Fedora-CoreOS-Ignition
|
# Fedora-CoreOS-Ignition
|
||||||
Ignition configurations for Fedora CoreOS<br />
|
Ignition configurations for Fedora CoreOS<br />
|
||||||
|
|
||||||
# Notes
|
## Notes
|
||||||
These configurations are tailored for Metropolis.nexus environment:
|
These configurations are tailored for Metropolis.nexus environment:
|
||||||
- Firewalling is handled by Proxmox (not the individual VMs)
|
- Firewalling is handled by Proxmox (not the individual VMs)
|
||||||
- DNSSEC validation is done by either OPNsense or a central VM dedicated to running the DNS resolver
|
- DNSSEC validation is done by either OPNsense or a central VM dedicated to running the DNS resolver
|
||||||
- Podman will be used for deployment, not Docker
|
- The `docker-auto-update@.timer` in `/etc/systemd/system` can be enabled to have automatic updates for your containers created by Docker Compose.
|
40
x86.yml
40
x86.yml
@@ -36,6 +36,7 @@ systemd:
|
|||||||
After=systemd-machine-id-commit.service
|
After=systemd-machine-id-commit.service
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Before=zincati.service
|
Before=zincati.service
|
||||||
|
ConditionPathExists=!/var/lib/%N.stamp
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
@@ -44,11 +45,33 @@ systemd:
|
|||||||
ExecStart=/usr/sbin/setsebool -P container_use_cephfs off
|
ExecStart=/usr/sbin/setsebool -P container_use_cephfs off
|
||||||
ExecStart=/usr/sbin/setsebool -P virt_use_nfs off
|
ExecStart=/usr/sbin/setsebool -P virt_use_nfs off
|
||||||
ExecStart=/usr/sbin/setsebool -P virt_use_samba off
|
ExecStart=/usr/sbin/setsebool -P virt_use_samba off
|
||||||
ExecStart=/usr/bin/rpm-ostree install hardened_malloc qemu-guest-agent tuned
|
ExecStart=/usr/bin/systemctl start gvisor-auto-update.service
|
||||||
|
ExecStart=/usr/bin/rpm-ostree override remove containerd docker-cli moby-engine runc systemd-resolved
|
||||||
|
ExecStart=/usr/bin/rpm-ostree install docker-ce docker-compose-plugin hardened_malloc qemu-guest-agent tuned
|
||||||
ExecStart=/usr/bin/sed -i 's/\s+nullok//g' /etc/pam.d/system-auth
|
ExecStart=/usr/bin/sed -i 's/\s+nullok//g' /etc/pam.d/system-auth
|
||||||
|
ExecStart=/usr/bin/systemctl disable --now systemd-resolved
|
||||||
|
ExecStart=/usr/bin/rm /etc/resolv.conf
|
||||||
|
ExecStart=/usr/bin/touch /var/lib/%N.stamp
|
||||||
|
ExecStart=/usr/bin/systemctl --no-block reboot
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
- name: postinst2.service
|
||||||
|
enabled: true
|
||||||
|
contents: |
|
||||||
|
[Unit]
|
||||||
|
ConditionPathExists=/var/lib/postinst.stamp
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/usr/bin/echo 'libhardened_malloc.so' > /etc/ld.so.preload
|
||||||
ExecStart=/usr/bin/systemctl disable postinst
|
ExecStart=/usr/bin/systemctl disable postinst
|
||||||
ExecStart=/usr/bin/rm /etc/systemd/system/postinst.service
|
ExecStart=/usr/bin/rm /etc/systemd/system/postinst.service
|
||||||
ExecStart=/usr/bin/echo 'libhardened_malloc.so' > /etc/ld.so.preload
|
ExecStart=/usr/bin/rm /var/lib/postinst.stamp
|
||||||
|
ExecStart=/usr/bin/systemctl disable postinst2
|
||||||
|
ExecStart=/usr/bin/rm /etc/systemd/system/postinst2.service
|
||||||
ExecStart=/usr/bin/systemctl --no-block reboot
|
ExecStart=/usr/bin/systemctl --no-block reboot
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
@@ -57,8 +80,6 @@ systemd:
|
|||||||
- name: debug-shell.service
|
- name: debug-shell.service
|
||||||
enabled: false
|
enabled: false
|
||||||
mask: true
|
mask: true
|
||||||
- name: docker.service
|
|
||||||
enabled: false
|
|
||||||
- name: podman-auto-update.timer
|
- name: podman-auto-update.timer
|
||||||
enabled: true
|
enabled: true
|
||||||
- name: rpm-ostree-countme.timer
|
- name: rpm-ostree-countme.timer
|
||||||
@@ -124,6 +145,13 @@ storage:
|
|||||||
contents:
|
contents:
|
||||||
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/systemd/coredump.conf.d/disable.conf
|
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/systemd/coredump.conf.d/disable.conf
|
||||||
|
|
||||||
|
- path: /etc/systemd/system/docker-auto-update@.service
|
||||||
|
contents:
|
||||||
|
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/refs/heads/main/etc/systemd/system/docker-auto-update%40.service
|
||||||
|
- path: /etc/systemd/system/docker-auto-update@.timer
|
||||||
|
contents:
|
||||||
|
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/refs/heads/main/etc/systemd/system/docker-auto-update%40.timer
|
||||||
|
|
||||||
- path: /etc/systemd/system/gvisor-auto-update.service
|
- path: /etc/systemd/system/gvisor-auto-update.service
|
||||||
contents:
|
contents:
|
||||||
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/systemd/system/gvisor-auto-update.service
|
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/systemd/system/gvisor-auto-update.service
|
||||||
@@ -154,7 +182,9 @@ storage:
|
|||||||
- path: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:secureblue:hardened_malloc.repo
|
- path: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:secureblue:hardened_malloc.repo
|
||||||
contents:
|
contents:
|
||||||
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:secureblue:hardened_malloc.repo
|
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:secureblue:hardened_malloc.repo
|
||||||
overwrite: true
|
- path: /etc/yum.repos.d/docker-ce.repo
|
||||||
|
contents:
|
||||||
|
source: https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/refs/heads/main/etc/yum.repos.d/docker-ce.repo
|
||||||
|
|
||||||
- path: /etc/zincati/config.d/51-rollout-wariness.toml
|
- path: /etc/zincati/config.d/51-rollout-wariness.toml
|
||||||
contents:
|
contents:
|
||||||
|
Reference in New Issue
Block a user