Skip to content

Instantly share code, notes, and snippets.

@marekciupak
Last active November 9, 2022 16:24
Show Gist options
  • Save marekciupak/e47459ec0a5e9a93f5878b8e07424c6f to your computer and use it in GitHub Desktop.
Save marekciupak/e47459ec0a5e9a93f5878b8e07424c6f to your computer and use it in GitHub Desktop.
Actual coreos.ign
{
"ignition": {
"version": "3.3.0"
},
"passwd": {
"users": [
{
"groups": [
"docker",
"sudo",
"wheel"
],
"name": "user",
"passwordHash": "$y$j9T$2gWTV7yicVIflauzp5B3W0$g/GQ3/zXspABUTl/oaYp01bK3cqwS9TgPniJWdjM92B"
}
]
},
"systemd": {
"units": [
{
"contents": "[Unit]\nDescription=MyApp\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nTimeoutStartSec=0\nExecStartPre=-/bin/podman kill busybox1\nExecStartPre=-/bin/podman rm busybox1\nExecStartPre=/bin/podman pull busybox\nExecStart=/bin/podman run --name busybox1 busybox /bin/sh -c \"trap 'exit 0' INT TERM; while true; do echo Hello World; sleep 1; done\"\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "hello.service"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment