Skip to content

Instantly share code, notes, and snippets.

@darkmuggle
Created July 10, 2020 19:00
Show Gist options
  • Save darkmuggle/51d97d1e8d6550512fc2c40b49f0ad7a to your computer and use it in GitHub Desktop.
Save darkmuggle/51d97d1e8d6550512fc2c40b49f0ad7a to your computer and use it in GitHub Desktop.
test of v2, maybe
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:
disk:
- device: /var/xvdb
wipe_table: true
partition:
number: 0
label: var-log
filesystems:
- name: var-log
mount:
device: /dev/xvdb
format: xfs
wipeFilesystem: true
create: true
label: var-log
path: /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