Skip to content

Instantly share code, notes, and snippets.

@Quintenps
Created April 24, 2023 13:44
Show Gist options
  • Save Quintenps/8f73c36e4f85b6ea8bf2f344a77b83c1 to your computer and use it in GitHub Desktop.
Save Quintenps/8f73c36e4f85b6ea8bf2f344a77b83c1 to your computer and use it in GitHub Desktop.
fcos butane config
variant: fcos
version: 1.4.0
storage:
files:
- path: /etc/hostname
mode: 0644
contents:
inline: artemis
- path: /etc/profile.d/zz-default-editor.sh
overwrite: true
contents:
inline: |
export EDITOR=vim
- path: /etc/zincati/config.d/55-updates-strategy.toml
contents:
inline: |
[updates]
strategy = "periodic"
[[updates.periodic.window]]
days = [ "Sat", "Sun" ]
start_time = "04:30"
length_minutes = 60
systemd:
units:
# Installing vim as a layered package with rpm-ostree
- name: rpm-ostree-install-vim.service
enabled: true
contents: |
[Unit]
Description=Layer vim with rpm-ostree
Wants=network-online.target
After=network-online.target
# We run before `zincati.service` to avoid conflicting rpm-ostree
# transactions.
Before=zincati.service
ConditionPathExists=!/var/lib/%N.stamp
[Service]
Type=oneshot
RemainAfterExit=yes
# `--allow-inactive` ensures that rpm-ostree does not return an error
# if the package is already installed. This is useful if the package is
# added to the root image in a future Fedora CoreOS release as it will
# prevent the service from failing.
ExecStart=/usr/bin/rpm-ostree install --apply-live --allow-inactive vim
ExecStart=/bin/touch /var/lib/%N.stamp
[Install]
WantedBy=multi-user.target
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPKWQCfxbUFAEI1sy2qP62U/pjVrPbOQr74d39qBUoE5
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJNym1Gp4kmY2/Q0wV8T1v1+uQ+ZC+o2RL+C+OZLTWnj
- name: quinten
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPKWQCfxbUFAEI1sy2qP62U/pjVrPbOQr74d39qBUoE5
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJNym1Gp4kmY2/Q0wV8T1v1+uQ+ZC+o2RL+C+OZLTWnj
groups:
- sudo
- wheel
- docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment