Skip to content

Instantly share code, notes, and snippets.

@domdorn
Created October 6, 2016 14:21
Show Gist options
  • Save domdorn/e9a326e93c46115d5e109b193e39c6cf to your computer and use it in GitHub Desktop.
Save domdorn/e9a326e93c46115d5e109b193e39c6cf to your computer and use it in GitHub Desktop.
{
"ignition": { "version": "2.0.0" },
"storage": {
"disks": [
{
"device": "/dev/sda",
"wipeTable": false,
"partitions": [{
"label": "raid.1.1",
"number": 10,
"size": 1782579
}]
},
{
"device": "/dev/sdb",
"wipeTable": false,
"partitions": [{
"label": "raid.1.2",
"number": 10,
"size": 1782579
}]
}
],
"raid": [{
"devices": [
"/dev/disk/by-partlabel/raid.1.1",
"/dev/disk/by-partlabel/raid.1.2"
],
"level": "mirror",
"name": "data"
}],
"filesystems": [{
"mount": {
"device": "/dev/md/data",
"format": "ext4",
"create": { "options": [ "-L", "DATA" ] }
}
}]
},
"systemd": {
"units": [{
"name": "var-lib-data.mount",
"enable": true,
"contents": "[Mount]\nWhat=/dev/md/data\nWhere=/var/lib/data\nType=ext4\n\n[Install]\nWantedBy=local-fs.target"
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment