# Example extra Butane config for a Flatcar VM. Reference it from tfvars with # `butane_file = "butane/.yaml"`. It is merged into the base config the # module generates (hostname, core + ansible users with the shared SSH key). # Applied by Ignition on FIRST BOOT only: to change a running VM, edit this # file and taint the VM so it is rebuilt from the image. variant: flatcar version: 1.0.0 systemd: units: # Example: run a container as a service. - name: hello.service enabled: true contents: | [Unit] Description=Hello container After=docker.service Requires=docker.service [Service] TimeoutStartSec=0 ExecStartPre=-/usr/bin/docker rm --force hello ExecStart=/usr/bin/docker run --name hello --rm -p 8080:80 nginx:alpine ExecStop=/usr/bin/docker stop hello Restart=always RestartSec=5s [Install] WantedBy=multi-user.target storage: files: # Example: a file on disk. - path: /etc/motd mode: 0644 contents: inline: | Managed by OpenTofu + Ignition. Config changes require a rebuild.