Skip to content

Instantly share code, notes, and snippets.

@darkmuggle
Created July 10, 2020 16:37
Show Gist options
  • Save darkmuggle/20d07a4d3cf31d5469a4591dbca05086 to your computer and use it in GitHub Desktop.
Save darkmuggle/20d07a4d3cf31d5469a4591dbca05086 to your computer and use it in GitHub Desktop.
RHCOS example
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 99-ignition-disks
spec:
config:
ignition:
version: 2.2.0
storage:
disks:
- device: /dev/xvdb
partitions:
- label: var-log
number: 0
size_mib: 0
filesystems:
- device: /dev/disk/by-partlabel/var-log
format: xfs
label: var-log
wipe_filesystem: true
systemd:
units:
- contents: |
[Unit]
Before=local-fs.target
[Mount]
Where=/var/log
What=/dev/disk/by-partlabel/var-log
[Install]
WantedBy=local-fs.target
enabled: true
name: var-log.mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment