Skip to content

Instantly share code, notes, and snippets.

@darkmuggle
Created July 9, 2020 18:27
Show Gist options
  • Save darkmuggle/dfa7f1ea8bf48ad2307cec488c78121b to your computer and use it in GitHub Desktop.
Save darkmuggle/dfa7f1ea8bf48ad2307cec488c78121b to your computer and use it in GitHub Desktop.
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 50-var-log
spec:
config:
ignition:
version: 2.2.0
storage:
disks:
- device: /dev/xvdb
partitions:
- label: var-log
number: 0
size: 2097152
filesystems:
- mount:
device: /dev/disk/by-partlabel/var-log
format: xfs
label: var-log
wipeFilesystem: true
name: var-log
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