From 6789838f8fe9224286633555072e5fcbc01fd8c8 Mon Sep 17 00:00:00 2001 From: Thomas Hintz Date: Sat, 19 Jul 2025 10:47:55 -0700 Subject: [PATCH] before switching to caddy --- flatcar-quickstart2/cl.yaml | 25 +++++++++++++++++++++++++ flatcar-quickstart2/ignition.json | 1 + 2 files changed, 26 insertions(+) create mode 100644 flatcar-quickstart2/cl.yaml create mode 100644 flatcar-quickstart2/ignition.json diff --git a/flatcar-quickstart2/cl.yaml b/flatcar-quickstart2/cl.yaml new file mode 100644 index 0000000..c097dd4 --- /dev/null +++ b/flatcar-quickstart2/cl.yaml @@ -0,0 +1,25 @@ +variant: flatcar +version: 1.0.0 +systemd: + units: + - name: nginx.service + enabled: true + contents: | + [Unit] + Description=NGINX example + After=docker.service + Requires=docker.service + [Service] + TimeoutStartSec=0 + ExecStartPre=-/usr/bin/docker rm --force nginx1 + ExecStart=/usr/bin/docker run --name nginx1 --pull always --log-driver=journald --net host docker.io/nginx:1 + ExecStop=/usr/bin/docker stop nginx1 + Restart=always + RestartSec=5s + [Install] + WantedBy=multi-user.target +storage: + files: + - path: /var/www/index.html + contents: + inline: Hello worldxx diff --git a/flatcar-quickstart2/ignition.json b/flatcar-quickstart2/ignition.json new file mode 100644 index 0000000..a4cc8b1 --- /dev/null +++ b/flatcar-quickstart2/ignition.json @@ -0,0 +1 @@ +{"ignition":{"version":"3.3.0"},"storage":{"files":[{"path":"/var/www/index.html","contents":{"compression":"","source":"data:,Hello%20worldxx"}}]},"systemd":{"units":[{"contents":"[Unit]\nDescription=NGINX example\nAfter=docker.service\nRequires=docker.service\n[Service]\nTimeoutStartSec=0\nExecStartPre=-/usr/bin/docker rm --force nginx1\nExecStart=/usr/bin/docker run --name nginx1 --pull always --log-driver=journald --net host docker.io/nginx:1\nExecStop=/usr/bin/docker stop nginx1\nRestart=always\nRestartSec=5s\n[Install]\nWantedBy=multi-user.target\n","enabled":true,"name":"nginx.service"}]}}