mirror of
https://github.com/tommytran732/Fedora-CoreOS-Ignition.git
synced 2024-12-25 23:39:21 -05:00
161 lines
8.9 KiB
Plaintext
161 lines
8.9 KiB
Plaintext
{
|
|
"ignition": {
|
|
"version": "3.3.0"
|
|
},
|
|
"kernelArguments": {
|
|
"shouldExist": [
|
|
"kvm.nx_huge_pages=force",
|
|
"random.trust_cpu=off",
|
|
"kernel.dmesg_restrict=1",
|
|
"fs.protected_fifos=2",
|
|
"fs.protected_regular=2",
|
|
"fs.protected_symlinks=1",
|
|
"fs.protected_hardlinks=1",
|
|
"net.core.bpf_jit_harden=2",
|
|
"kernel.kexec_load_disabled=1",
|
|
"kernel.kptr_restrict=2",
|
|
"vm.mmap_rnd_bits=32",
|
|
"vm.mmap_rnd_compat_bits=16",
|
|
"kernel.yama.ptrace_scope=2",
|
|
"fs.suid_dumpable=0",
|
|
"net.ipv4.tcp_rfc1337=1",
|
|
"kernel.perf_event_paranoid=3",
|
|
"kernel.randomize_va_space=2",
|
|
"net.ipv4.icmp_ignore_bogus_error_responses=1",
|
|
"net.ipv4.conf.all.log_martians=1"
|
|
]
|
|
},
|
|
"passwd": {
|
|
"users": [
|
|
{
|
|
"groups": [
|
|
"wheel",
|
|
"sudo"
|
|
],
|
|
"name": "tomster",
|
|
"sshAuthorizedKeys": [
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAIAQDPgQ5VZDocVP2R9L+PCOczgpcuKBeb+NnwuXo6JgeFnR+ebZ8OHnWAqDMQoUN+VveN5ja+Bklrra8EifsaX6yysvtHqY+DgaClo+f4N8/Tcg9oOATuOPz5ls4ZPILWs6AN0p5NYP4UNQEAdSQKehQd1X1Q3Z4Am1CNs7u4mcsaeoKY29qbj+YJ2R2EfI9jq5y558vi7Bm7a5mpkQ8+l/7/mt3OO6OEy6osjnAoa3yRIHGhkpLBQkIGOg99DIK/FKMD+XK346P7Go+peUdV7lmOtKSaOHAmpuMWUXTBnPMsznfyhmIh56vuWhDm/3M4iHdowa0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PaHStBRRFUPhQu+24xJb2OWOLcFRHgu5IdXRp+hlhjPS+HzzoW++tCYeN23L2fDYQyAAvuGfQpJGPpheZKb2A52QRG7XBWIbWO4X1I/aQI12aQkzpcFWY1xnuTVjDzqF2eYx22HCQeCYhwMJ0vQNPbmOm57yCyU8q04+VYMQ1uO5x4zJ28BDCzQ4UFYVk7DgL5Fq4sjFUcAqCEc36dVJFw/aDEFnTeWlb6REzf2IqLNvWQ== tomster@PRL-01"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"storage": {
|
|
"files": [
|
|
{
|
|
"path": "/etc/zincati/config.d/51-rollout-wariness.toml",
|
|
"contents": {
|
|
"source": "data:,%5Bidentity%5D%0Arollout_wariness%20%3D%201%0A"
|
|
}
|
|
},
|
|
{
|
|
"path": "/etc/zincati/config.d/55-updates-strategy.toml",
|
|
"contents": {
|
|
"compression": "gzip",
|
|
"source": "data:;base64,H4sIAAAAAAAC/2SNMarEMAxEe51C6ADB1S8+5BRbGmNMLLIGRw62TMieflGRats3b2b8PHNSHgGG9qS837gindxLy2UjePLlQQG0HBw/TdjM2rZUjRD4H3e5iuR2hQA53QNX9EivKYT2lrpGK9qK+3eOoLLs+o5Hkals+p+DbwAAAP//4Po2vKAAAAA="
|
|
}
|
|
},
|
|
{
|
|
"path": "/etc/fail2ban/jail.local",
|
|
"contents": {
|
|
"source": "data:;base64,W0RFRkFVTFRdCiMgTWF4aW11bSAzIGZhaWx1cmVzOgptYXhlbnRyeSA9IDMKIyBCYW4gaG9zdHMgZm9yIHRlbiBob3VyOgpiYW50aW1lID0gMzYwMAojIE92ZXJyaWRlIC9ldGMvZmFpbDJiYW4vamFpbC5kLzAwLWZpcmV3YWxsZC5jb25mOgpiYW5hY3Rpb24gPSBpcHRhYmxlcy1tdWx0aXBvcnQKW3NzaGRdCmVuYWJsZWQgPSB0cnVlCg=="
|
|
}
|
|
},
|
|
{
|
|
"overwrite": true,
|
|
"path": "/etc/tuned/active_profile",
|
|
"contents": {
|
|
"source": "data:,virtual-guest%0A"
|
|
}
|
|
},
|
|
{
|
|
"overwrite": true,
|
|
"path": "/etc/tuned/profile_mode",
|
|
"contents": {
|
|
"source": "data:,manual%0A"
|
|
}
|
|
},
|
|
{
|
|
"overwrite": true,
|
|
"path": "/etc/systemd/zram-generator.conf",
|
|
"contents": {
|
|
"source": "data:;base64,IyBUaGlzIGNvbmZpZyBmaWxlIGVuYWJsZXMgYSAvZGV2L3pyYW0wIGRldmljZSB3aXRoIHRoZSBkZWZhdWx0IHNldHRpbmdzClt6cmFtMF0KenJhbS1mcmFjdGlvbiA9IDEKbWF4LXpyYW0tc2l6ZSA9IDgxOTIK"
|
|
}
|
|
},
|
|
{
|
|
"overwrite": true,
|
|
"path": "/etc/security/limits.d/30-disable-coredump.conf",
|
|
"contents": {
|
|
"source": "data:,*%20hard%20core%200%0A"
|
|
}
|
|
},
|
|
{
|
|
"overwrite": true,
|
|
"path": "/etc/ssh/ssh_config.d/60-disable-GSSAPI.conf",
|
|
"contents": {
|
|
"source": "data:,GSSAPIAuthentication%20no%0A"
|
|
}
|
|
},
|
|
{
|
|
"path": "/etc/sysctl.d/20-silence-audit.conf",
|
|
"contents": {
|
|
"compression": "gzip",
|
|
"source": "data:;base64,H4sIAAAAAAAC/0TOsUrEUBCF4f4+xYEU7jZbLVhZKMpikyIg1kMyubnkZibMTAJ5ewkiPsD5z9ego+KMXsW1MhZ2p8yomnORjMo7V4ymC94/3r4euDxfEYrv1679bB+43K+pgStiogBtQ4m/hmNQeQpkDhQJNl/ZnAeoIKb/y3OZGix0YLTNwygYhM3ZEHacitDfAvVRdq7HyUORW5rZhOtttSIxv9zTTwAAAP//Cm0jUs8AAAA="
|
|
}
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"path": "/etc/localtime",
|
|
"target": "../usr/share/zoneinfo/America/New_York"
|
|
},
|
|
{
|
|
"path": "/etc/systemd/system/multi-user.target.wants/tuned.service",
|
|
"target": "/usr/lib/systemd/system/tuned.service"
|
|
},
|
|
{
|
|
"path": "/etc/systemd/system/multi-user.target.wants/prelockd.service",
|
|
"target": "/usr/lib/systemd/system/prelockd.service"
|
|
},
|
|
{
|
|
"path": "/etc/systemd/system/multi-user.target.wants/fail2ban.service",
|
|
"target": "/usr/lib/systemd/system/fail2ban.service"
|
|
},
|
|
{
|
|
"path": "/etc/systemd/system/kdump.service.target",
|
|
"target": "/dev/null"
|
|
}
|
|
]
|
|
},
|
|
"systemd": {
|
|
"units": [
|
|
{
|
|
"contents": "[Unit]\nDescription=Initial System Setup\n# We run after `systemd-machine-id-commit.service` to ensure that\n# `ConditionFirstBoot=true` services won't rerun on the next boot.\nAfter=systemd-machine-id-commit.service\nAfter=network-online.target\n# We run before `zincati.service` to avoid conflicting rpm-ostree\n# transactions.\nBefore=zincati.service\nConditionPathExists=!/var/lib/%N.stamp\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=/usr/bin/rpm-ostree install fail2ban firewalld prelockd tuned qemu-guest-agent\nExecStart=/bin/touch /var/lib/%N.stamp\nExecStart=/usr/sbin/setsebool -P container_use_cephfs off\nExecStart=/usr/sbin/setsebool -P virt_use_nfs off\nExecStart=/usr/sbin/setsebool -P virt_use_samba off\nExecStart=/usr/bin/sed 's/nullok//g' /etc/pam.d/system-auth\nExecStart=/usr/bin/curl https://raw.githubusercontent.com/Whonix/security-misc/master/etc/modprobe.d/30_security-misc.conf -o /etc/modprobe.d/30_security-misc.conf\nExecStart=/bin/systemctl --no-block reboot\n\n[Install]\nWantedBy=multi-user.target\n",
|
|
"enabled": true,
|
|
"name": "postinst.service"
|
|
},
|
|
{
|
|
"contents": "[Unit]\nDescription=Initial System Setup Part 2\n# We run this after the packages have been overlayed\nAfter=network-online.target\nConditionPathExists=!/var/lib/%N.stamp\nConditionPathExists=/var/lib/postinst.stamp\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=/usr/bin/firewall-cmd --reload\nExecStart=/usr/bin/docker run --detach --privileged --name watchtower --restart unless-stopped -v /var/run/docker.sock:/var/run/docker.sock -v /etc/localtime:/etc/localtime:ro containrrr/watchtower --schedule \"0 5 0 * * 1\"\nExecStart=/bin/touch /var/lib/%N.stamp\n\n[Install]\nWantedBy=multi-user.target\n",
|
|
"enabled": true,
|
|
"name": "postinst2.service"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"name": "docker.service"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"name": "fstrim.timer"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"name": "systemd-oomd.service"
|
|
},
|
|
{
|
|
"enabled": false,
|
|
"mask": true,
|
|
"name": "rpm-ostree-countme.timer"
|
|
}
|
|
]
|
|
}
|
|
}
|