Skip to content

Instantly share code, notes, and snippets.

@logicminds
Last active March 24, 2017 03:39
Show Gist options
  • Save logicminds/e6d2308ef1c3a17044d6ba9d44e8af46 to your computer and use it in GitHub Desktop.
Save logicminds/e6d2308ef1c3a17044d6ba9d44e8af46 to your computer and use it in GitHub Desktop.
{
"ignition": { "version": "2.0.0" },
"storage": {
"files": [{
"filesystem": "root",
"path": "/etc/hostname",
"mode": 420,
"contents": {"source": "data:,core1"}
}],
"filesystems": [{
"mount": {
"device": "/dev/sda",
"format": "ext4",
"create": {
"force": true,
"options": [ "--label=container_storage" ]
}
}
}],
"disks": [{
"device": "/dev/sda",
"wipeTable": true,
"partitions": [{
"label": "container_storage",
"number": 1,
"size": 200480,
"start": 0
}]
}]
},
"passwd": {
"users": [{
"name": "cosman",
"passwordHash": "$1$MJY9eKiv$M8mXY0ETOpRJTV8rwoI0A.",
"sshAuthorizedKeys": [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC2kJG/qk1mFMD3UrqRKB3UdOa/PPGGTjsmWz2U1F335HMqFfugYqqvztz8M486FaGeWJIe5jYQUcs8LNqt5/Kq04StmrkbJEIdWIklPH7lIz1/G1YoThxOilZUu95mR33OivICVBXpCBGknLs0aNpE9tOzz/wXLUgROKeg+dzjbW2benH+zzb+h9us480fRL1vPVUoKl8bEz60dLGEq66sOIeELAwVpuNWGfyDkgIzD/lpgglFCl9WrUj9SjEq76w3OTSCjAHNd1QVdevUiOPfZ3F/jK3DUwnyHr9ZJNl8xGBDi+kSf/TbH/KSewBc0uxgor89bsmZivSjP9bw/xHN [email protected]"],
"create": {
"groups": ["sudo", "docker"]
}
}]
},
"systemd": {
"units": [{
"name": "var-lib-data.mount",
"enable": true,
"contents": "[Mount]\nWhat=/dev/sda\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