Add ignition files

This commit is contained in:
2026-02-07 15:05:27 +00:00
parent ba46419add
commit c63fb6df1d
6 changed files with 287 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
variant: fcos
version: 1.6.0
passwd:
users:
# Add user to docker group
- name: core
groups:
- docker
storage:
files:
- path: /var/home/core/.bashrc
append:
- inline: "alias dc='docker compose -f /var/docker/docker-compose.yml'"
directories:
- path: /var/docker
user:
name: core
group:
name: docker
systemd:
units:
# Install Docker CE
- name: rpm-ostree-install-docker-ce.service
enabled: true
contents: |
[Unit]
Description=Install Docker CE
Wants=network-online.target
After=network-online.target
Before=zincati.service
ConditionPathExists=!/var/lib/%N.stamp
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/curl --output-dir "/etc/yum.repos.d" --remote-name https://download.docker.com/linux/fedora/docker-ce.repo
ExecStart=/usr/bin/rpm-ostree override remove moby-engine containerd runc docker-cli --install docker-ce
ExecStart=/usr/bin/touch /var/lib/%N.stamp
ExecStart=/usr/bin/systemctl enable docker.service
ExecStart=/usr/bin/systemctl --no-block reboot
[Install]
WantedBy=multi-user.target