Last active
April 18, 2026 19:40
-
-
Save DenisKramer/641acdba305e2a311b9b5b6c29c3d4bb to your computer and use it in GitHub Desktop.
Simple CoreOS Ignition Config with username:password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ignition": { | |
| "version": "3.0.0" | |
| }, | |
| "passwd": { | |
| "users": [ | |
| { | |
| "groups": [ | |
| "sudo", | |
| "docker" | |
| ], | |
| "name": "admin", | |
| "passwordHash": "$y$j9T$n6h8P2ik8tfoNUFBBoly00$7bnrMF8oFrB25Fc3NqigqEH/MI5YXIJwtCG/iEsns.2" | |
| } | |
| ] | |
| }, | |
| "storage": { | |
| "files": [ | |
| { | |
| "contents": { | |
| "source": "data:,CoreOS%0A" | |
| }, | |
| "mode": 420, | |
| "path": "/etc/hostname" | |
| }, | |
| { | |
| "contents": { | |
| "source": "data:,%23%20Tell%20systemd%20to%20not%20use%20a%20pager%20when%20printing%20information%0Aexport%20SYSTEMD_PAGER%3Dcat%0A" | |
| }, | |
| "mode": 420, | |
| "path": "/etc/profile.d/systemd-pager.sh" | |
| }, | |
| { | |
| "contents": { | |
| "source": "data:,%23%20Raise%20console%20message%20logging%20level%20from%20DEBUG%20(7)%20to%20WARNING%20(4)%0A%23%20to%20hide%20audit%20messages%20from%20the%20interactive%20console%0Akernel.printk%3D4%0A" | |
| }, | |
| "mode": 420, | |
| "path": "/etc/sysctl.d/20-silence-audit.conf" | |
| }, | |
| { | |
| "contents": { | |
| "source": "data:,%23%20Enable%20SSH%20password%20login%0APasswordAuthentication%20yes%0A" | |
| }, | |
| "mode": 420, | |
| "path": "/etc/ssh/sshd_config.d/20-enable-passwords.conf" | |
| } | |
| ] | |
| }, | |
| "systemd": { | |
| "units": [ | |
| { | |
| "enabled": true, | |
| "name": "docker.service" | |
| }, | |
| { | |
| "enabled": true, | |
| "name": "containerd.service" | |
| } | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment